change 'cd exportDir' error code

This commit is contained in:
Asif Bacchus 2019-07-25 12:42:02 -06:00
parent 649d162d4c
commit 9c8c250318

View File

@ -392,7 +392,7 @@ if ! exportDir=$( mktemp -d 2>>"$logFile" ); then
exitError 111 "Could not create temporary directory for exported EML files"
fi
if ! cd "$exportDir"; then
exitError 112 "Unable to change to temporary export directory"
exitError 113 "Unable to change to temporary export directory"
fi
printf "${cyan}[%s] -- [INFO] EML files will be temporarily stored in:" \
"$(stamp)" >> "$logFile"
@ -637,7 +637,8 @@ exit 0
# 3: borg not installed
# 99: TERM signal trapped
# 111: could not create tmp dir for EML dump from piler-export
# 112: could not change to tmp dir to start export operation
# 112: could not set permissions on tmp dir
# 113: could not change to tmp dir to start export operation
# 115: problem during piler-export operation
# 130: null configuration variable in details file
# 131: invalid configuration variable in details file