diff options
-rwxr-xr-x | remove-old-kernels | 2 |
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 |