diff --git a/src/borgwrapper.sh b/src/borgwrapper.sh index 1633115..0f2c916 100755 --- a/src/borgwrapper.sh +++ b/src/borgwrapper.sh @@ -164,6 +164,7 @@ lock_failed () { exit_clean () { [[ -n ${PV_WRAPPER} ]] && rm -f ${PV_WRAPPER} + [[ -n ${LOCKFILE} ]] && rm -f "${LOCKFILE}" trap - ERR INT TERM exit $1 }