From 019bc56a7391d61e72e408fc12e8fa2b8024acd8 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 5 May 2022 10:14:04 -0400 Subject: [PATCH] Build: Handle empty usernames --- build_scripts/appimage/install-infection-monkey-service.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build_scripts/appimage/install-infection-monkey-service.sh b/build_scripts/appimage/install-infection-monkey-service.sh index bdc16cdf3..0f437e53b 100755 --- a/build_scripts/appimage/install-infection-monkey-service.sh +++ b/build_scripts/appimage/install-infection-monkey-service.sh @@ -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