diff options
author | Daniel Baumann <daniel@debian.org> | 2007-11-11 21:29:25 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:29 +0100 |
commit | 7059380cd8e60e81c1c4c462471a291035c56ec2 (patch) | |
tree | 4b411c9aa6ce633e258e363d97d99734d3267a84 | |
parent | 6becfab50db66839a7a34ec7e0742b455071a0f0 (diff) | |
download | vyos-live-build-7059380cd8e60e81c1c4c462471a291035c56ec2.tar.gz vyos-live-build-7059380cd8e60e81c1c4c462471a291035c56ec2.zip |
Fixing trap call, thanks to An-Cheng Huang <ancheng@vyatta.com>.
-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 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}" |