summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-25 17:35:15 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-25 17:35:15 -0400
commita1f8923dcfa565bf3907c604fdbee85fccee81d1 (patch)
tree00fccb4801b514ec13c0dcb0ae20eb3242b97bb4 /src
parent7d85e2d931cc2fb063d1360527fce5d5384fa6b5 (diff)
aur: use EXIT_* for $ret
Diffstat (limited to 'src')
-rwxr-xr-xsrc/aur4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aur b/src/aur
index 197bb34..f53b015 100755
--- a/src/aur
+++ b/src/aur
@@ -50,7 +50,7 @@ main() {
local startdir=$PWD
local missing_deps=()
- local ret=0
+ local ret=$EXIT_SUCCESS
local pkg
local copy_new
local copy_old
@@ -73,7 +73,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|EXIT_FAILURE))
error "Couldn't get %s" "$pkg"
continue
fi