aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xremove-old-kernels2
1 files changed, 1 insertions, 1 deletions
diff --git a/remove-old-kernels b/remove-old-kernels
index 7a695c4..f4547e8 100755
--- a/remove-old-kernels
+++ b/remove-old-kernels
@@ -187,7 +187,7 @@ currcfg="${maincfg}"
# Check for -h option before running chk_cfg (issue10)
o=$(echo "$1"|cut -d- -f2)
[[ "$o" == "?" ]] && o="h"
-if [[ ${#@} = 1 ]] && [[ "h" =~ $o ]]; then
+if (( ${#@} == 1 )) && [[ "h" =~ $o ]]; then
clear; usage; exit 0
fi