From 23213bda24af601acbbea5731246a055680b48d0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 20 Apr 2017 22:39:20 -0400 Subject: Variables inside of $((...)) don't need a $ in front of them. These were found with the help of shellcheck. --- src/pkgbuild-summarize-nonfree | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkgbuild-summarize-nonfree') 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 -- cgit v1.2.2