diff options
Diffstat (limited to 'generic')
-rwxr-xr-x | generic/usr/bin/chrony_command | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/usr/bin/chrony_command b/generic/usr/bin/chrony_command index ed492935f..03a18d0ae 100755 --- a/generic/usr/bin/chrony_command +++ b/generic/usr/bin/chrony_command @@ -5,11 +5,11 @@ # some chronyc commands need prior autentication: extract keys from config PREFIX="chrony command helper: " command=$1 -if [ -n "$command" ] ; then +if [ -z "$command" ] ; then echo "Usage: $0 <command>" exit 0 fi -[ "$command" -eq "--help" ] && command="help" +[ "$command" = "--help" ] && command="help" bailout(){ echo "${PREFIX}ERROR --- $*" >&2 |