summaryrefslogtreecommitdiff
path: root/src/aur
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-20 22:39:20 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-04-20 23:00:21 -0400
commit23213bda24af601acbbea5731246a055680b48d0 (patch)
tree09fe7c18f2d5cecca569658c4968357274392769 /src/aur
parentd958a33c1f0e11b770481a9188cbf75cc3bfd0a5 (diff)
Variables inside of $((...)) don't need a $ in front of them.
These were found with the help of shellcheck.
Diffstat (limited to 'src/aur')
-rwxr-xr-xsrc/aur4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aur b/src/aur
index f904a16..4dc7a99 100755
--- a/src/aur
+++ b/src/aur
@@ -74,7 +74,7 @@ main() {
local url="https://aur.archlinux.org/packages/${pkg:0:2}/$pkg/$pkg.tar.gz"
set -o pipefail
if ! wget -O- -q "$url" | bsdtar xf -; then
- ret=$(($ret|2))
+ ret=$((ret|2))
error "Couldn't get %s" "$pkg"
continue
fi
@@ -138,7 +138,7 @@ main() {
if [[ ${#missing_deps[*]} -gt 0 ]]; then
msg "Retrieving missing deps: %s" "${missing_deps[*]}"
"$0" "${missing_deps[@]}"
- ret=$(($ret|$?))
+ ret=$((ret|$?))
fi
return $ret;
}