Build: Handle empty usernames

This commit is contained in:
Mike Salvatore 2022-05-05 10:14:04 -04:00
parent 0f133d0b35
commit 019bc56a73
1 changed files with 7 additions and 0 deletions

View File

@ -154,6 +154,13 @@ if $do_uninstall ; then
fi
if $do_install ; then
if [ -z "$username" ] ; then
echo "You must supply a username."
echo ""
echo_help
exit 1
fi
install_service "$username"
exit 0
fi