summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-11 21:29:25 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:29 +0100
commit7059380cd8e60e81c1c4c462471a291035c56ec2 (patch)
tree4b411c9aa6ce633e258e363d97d99734d3267a84
parent6becfab50db66839a7a34ec7e0742b455071a0f0 (diff)
downloadvyos-live-build-7059380cd8e60e81c1c4c462471a291035c56ec2.tar.gz
vyos-live-build-7059380cd8e60e81c1c4c462471a291035c56ec2.zip
Fixing trap call, thanks to An-Cheng Huang <ancheng@vyatta.com>.
-rwxr-xr-xfunctions/lockfile.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/lockfile.sh b/functions/lockfile.sh
index aa302225c..81fe55993 100755
--- a/functions/lockfile.sh
+++ b/functions/lockfile.sh
@@ -30,7 +30,7 @@ Create_lockfile ()
mkdir -p "${DIRECTORY}"
# Creating lock trap
- trap 'ret=${?}; '"rm -f \"${FILE}\"; for FILESYSTEM in devpts proc sys; do lh_chroot_${FILESYSTEM} remove || continue; done"' exit ${ret}' EXIT
+ trap 'ret=${?}; '"rm -f \"${FILE}\"; "'for FILESYSTEM in devpts proc sysfs; do lh_chroot_${FILESYSTEM} remove || continue; done; exit ${ret}' EXIT
# Creating lock file
touch "${FILE}"