summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-11 10:15:51 +0100
committerDaniel Baumann <daniel@debian.org>2007-11-11 10:15:51 +0100
commite2e653c198c762fb68974095f247158f4b46157e (patch)
tree5b365d4f785d43c306addaaf72eb8fe9b98255f3 /functions
parentf65b8300169d85a4a83c8ea66423837ccc434183 (diff)
downloadvyos-live-build-e2e653c198c762fb68974095f247158f4b46157e.tar.gz
vyos-live-build-e2e653c198c762fb68974095f247158f4b46157e.zip
Fixing trap call as suggested by Justin Pryzby <jpryzby@quoininc.com> (Closes: #431160, #449087).
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/lockfile.sh2
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}"