diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-25 17:35:15 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-25 17:35:15 -0400 |
commit | a1f8923dcfa565bf3907c604fdbee85fccee81d1 (patch) | |
tree | 00fccb4801b514ec13c0dcb0ae20eb3242b97bb4 /src/aur | |
parent | 7d85e2d931cc2fb063d1360527fce5d5384fa6b5 (diff) |
aur: use EXIT_* for $ret
Diffstat (limited to 'src/aur')
-rwxr-xr-x | src/aur | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |