Fixing trap call as suggested by Justin Pryzby <jpryzby@quoininc.com> (Closes: #431160, #449087).

This commit is contained in:
Daniel Baumann 2007-11-11 10:15:51 +01:00
parent a3b536bebd
commit 74a5575d5a
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ Create_lockfile ()
mkdir -p "${DIRECTORY}"
# Creating lock trap
trap "test -f ${FILE} && rm -f ${FILE}; exit 0" 0 1 2 3 9 15
trap 'ret=${?}; '"rm -f \"${FILE}\";"' exit ${ret}' EXIT
# Creating lock file
touch "${FILE}"