diff options
author | Daniel Baumann <daniel@debian.org> | 2007-11-11 10:15:51 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:28 +0100 |
commit | 74a5575d5a03a2897f10f207bf1c6acd00b30f6b (patch) | |
tree | 5b365d4f785d43c306addaaf72eb8fe9b98255f3 /functions | |
parent | a3b536bebd4aff98e6f77ca6562b7eefdce52311 (diff) | |
download | vyos-live-build-74a5575d5a03a2897f10f207bf1c6acd00b30f6b.tar.gz vyos-live-build-74a5575d5a03a2897f10f207bf1c6acd00b30f6b.zip |
Fixing trap call as suggested by Justin Pryzby <jpryzby@quoininc.com> (Closes: #431160, #449087).
Diffstat (limited to 'functions')
-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}" |