diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-20 22:39:20 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-20 23:00:21 -0400 |
commit | 23213bda24af601acbbea5731246a055680b48d0 (patch) | |
tree | 09fe7c18f2d5cecca569658c4968357274392769 /src/pkgbuild-summarize-nonfree | |
parent | d958a33c1f0e11b770481a9188cbf75cc3bfd0a5 (diff) |
Variables inside of $((...)) don't need a $ in front of them.
These were found with the help of shellcheck.
Diffstat (limited to 'src/pkgbuild-summarize-nonfree')
-rwxr-xr-x | src/pkgbuild-summarize-nonfree | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkgbuild-summarize-nonfree b/src/pkgbuild-summarize-nonfree index f4f10f1..a0fb538 100755 --- a/src/pkgbuild-summarize-nonfree +++ b/src/pkgbuild-summarize-nonfree @@ -51,7 +51,7 @@ main() { *) usage >&2; return 1;; esac done - shift $(($OPTIND - 1)) + shift $((OPTIND - 1)) if [[ $# -ne 1 ]]; then usage >&2 return 1 @@ -77,7 +77,7 @@ parse() { declare -i ret=0 declare -i i for i in 1 2 4 8 16 32; do - if [[ $(($s & $i)) -gt 0 ]]; then + if [[ $((s & i)) -gt 0 ]]; then case $i in $_E_ERROR) # could be anything, assume the worst |