diff options
author | Warner Losh <imp@FreeBSD.org> | 2021-07-28 19:42:29 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2021-09-12 15:56:14 +0000 |
commit | e961e7dc00abfa7baaf637389cdde42db4b0e2fa (patch) | |
tree | dfdc962c91e3a471325b4c6f7ef66a24ad323f80 | |
parent | 351acbedde1691eb64d34a94b3fcbddbf3662491 (diff) | |
download | src-e961e7dc00abfa7baaf637389cdde42db4b0e2fa.tar.gz src-e961e7dc00abfa7baaf637389cdde42db4b0e2fa.zip |
genassym.sh: Fix two minor issues found by shellcheck
o Remove redunant $ in $(( )) expression.
o Quote arg passed to work so paths with spaces, etc will work.
MFC After: 2 weeks
Reviewed by: kib
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D31335
(cherry picked from commit 46dd3ef0338ba2ad24d05bab2a614410cf17b017)
-rw-r--r-- | sys/kern/genassym.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/genassym.sh b/sys/kern/genassym.sh index 0374c8844b9a..999090f22d0e 100644 --- a/sys/kern/genassym.sh +++ b/sys/kern/genassym.sh @@ -57,7 +57,7 @@ do *) usage;; esac done -shift $(($OPTIND - 1)) +shift $((OPTIND - 1)) case $# in 1) ;; *) usage;; @@ -65,8 +65,8 @@ esac if [ "$use_outfile" = "yes" ] then - work $1 3>"$outfile" >&3 3>&- + work "$1" 3>"$outfile" >&3 3>&- else - work $1 + work "$1" fi |