Cleanup lockfile on exit
parent
fe2cda0598
commit
af82ccf0c2
|
|
@ -164,6 +164,7 @@ lock_failed () {
|
||||||
|
|
||||||
exit_clean () {
|
exit_clean () {
|
||||||
[[ -n ${PV_WRAPPER} ]] && rm -f ${PV_WRAPPER}
|
[[ -n ${PV_WRAPPER} ]] && rm -f ${PV_WRAPPER}
|
||||||
|
[[ -n ${LOCKFILE} ]] && rm -f "${LOCKFILE}"
|
||||||
trap - ERR INT TERM
|
trap - ERR INT TERM
|
||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue