diff options
author | Daniel Baumann <daniel@debian.org> | 2007-11-11 10:15:51 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-11-11 10:15:51 +0100 |
commit | e2e653c198c762fb68974095f247158f4b46157e (patch) | |
tree | 5b365d4f785d43c306addaaf72eb8fe9b98255f3 | |
parent | f65b8300169d85a4a83c8ea66423837ccc434183 (diff) | |
download | vyos-live-build-e2e653c198c762fb68974095f247158f4b46157e.tar.gz vyos-live-build-e2e653c198c762fb68974095f247158f4b46157e.zip |
Fixing trap call as suggested by Justin Pryzby <jpryzby@quoininc.com> (Closes: #431160, #449087).
-rwxr-xr-x | functions/lockfile.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/lockfile.sh b/functions/lockfile.sh index 185030842..189d0c231 100755 --- a/functions/lockfile.sh +++ b/functions/lockfile.sh @@ -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}" |