Skip to content

Commit

Permalink
Improved user count check
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Jan 21, 2024
1 parent ca47b45 commit 939cf30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ cp -n /etc/ssh/ssh_host_*_key.pub /ssh-host-keys/ 2>/dev/null || :

################################################################################

if [ $# -eq 0 ]; then
echo "You must specify at least one user" >&2
exit 1
fi
[ $# -gt 0 ] || { echo 'You must specify at least one user' >&2; exit 1; }

:> /etc/ssh/sshd_config_users # Empty file

Expand Down

0 comments on commit 939cf30

Please sign in to comment.