summaryrefslogtreecommitdiff
path: root/src/toru/toru-path
diff options
context:
space:
mode:
Diffstat (limited to 'src/toru/toru-path')
-rwxr-xr-xsrc/toru/toru-path6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/toru/toru-path b/src/toru/toru-path
index 611a857..494d0ae 100755
--- a/src/toru/toru-path
+++ b/src/toru/toru-path
@@ -61,10 +61,10 @@ main() {
if [[ $# != 0 ]]; then
if [[ $# == 1 && "$1" == '-h' ]]; then
usage
- return 0
+ return $EXIT_SUCCESS
fi
usage >&2
- return 2
+ return $EXIT_INVALIDARGUMENT
fi
declare -i ret=0
@@ -79,7 +79,7 @@ main() {
if [ ! -w "$TORUPATH" ]; then
error "Toru's path isn't writable. Please check your TORUPATH: %q" "$TORUPATH"
- exit 1
+ exit $EXIT_NOPERMISSION
fi
local lastsyncfile=${TORUPATH}/lastsync.paths