summaryrefslogtreecommitdiff
path: root/src/aur
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-25 17:24:14 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-25 17:28:30 -0400
commit7d85e2d931cc2fb063d1360527fce5d5384fa6b5 (patch)
tree3f7bdffd4575f7d878469b59476df8d378d1d805 /src/aur
parent525bb0c472f103fa30fe83a2de7c8c7e0469d8b8 (diff)
move more things to use the $EXIT_* variables
Diffstat (limited to 'src/aur')
-rwxr-xr-xsrc/aur6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/aur b/src/aur
index 314bfe7..197bb34 100755
--- a/src/aur
+++ b/src/aur
@@ -36,13 +36,13 @@ usage() {
main() {
while getopts 'h' arg; do
case $arg in
- h) usage; return 0;;
- *) usage >&2; return 1;;
+ h) usage; return $EXIT_SUCCESS;;
+ *) usage >&2; return $EXIT_INVALIDARGUMENT;;
esac
done
if [[ $# -lt 1 ]]; then
usage >&2
- return 1
+ return $EXIT_INVALIDARGUMENT
fi
. "$(librelib conf)"