exit gracefully, list exit codes
This commit is contained in:
parent
8eb2c07785
commit
dc75c0afea
@ -218,3 +218,18 @@ if [ ! -d "${borgBaseDir}/tmp" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
export TMPDIR="${borgBaseDir}/tmp"
|
export TMPDIR="${borgBaseDir}/tmp"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### exit gracefully
|
||||||
|
cleanup
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
### exit codes
|
||||||
|
# 0: no errors, script completed successfully
|
||||||
|
# 1: parameter error (missing, non-existant or invalid input)
|
||||||
|
# 2: parameter missing/invalid in .borgvars file
|
||||||
|
# 3: could not create/remove borg tmp directory
|
||||||
|
|
||||||
|
#EOF
|
Loading…
Reference in New Issue
Block a user