remove write-test file in restorePath
This commit is contained in:
parent
4dc77ca3ae
commit
cfd7d6ede0
@ -12,7 +12,12 @@ cleanup () {
|
|||||||
# remove borg temp directory, if it exists
|
# remove borg temp directory, if it exists
|
||||||
if [ -d "${borgBaseDir}/tmp" ]; then
|
if [ -d "${borgBaseDir}/tmp" ]; then
|
||||||
if ! rm -rf "${borgBaseDir}/tmp" > /dev/null 2>&1; then
|
if ! rm -rf "${borgBaseDir}/tmp" > /dev/null 2>&1; then
|
||||||
consoleError 3 "Script completed successfully but could not remove temporary directory at $borgBaseDir/tmp. Sorry to be messy."
|
consoleError 3 "Script completed successfully but could not remove temporary directory at '$borgBaseDir/tmp'. Sorry to be messy."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ -f "${restorePath}/touch.test" ]; then
|
||||||
|
if ! rm -f "${restorePath}/touch.test" > /dev/null 2>&1; then
|
||||||
|
consoleError 5 "Script completed successfully but could not remove test file at '$restorePath/touch.test'. Sorry to be messy."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user