From 7059380cd8e60e81c1c4c462471a291035c56ec2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 11 Nov 2007 21:29:25 +0100 Subject: Fixing trap call, thanks to An-Cheng Huang . --- functions/lockfile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/lockfile.sh b/functions/lockfile.sh index aa30222..81fe559 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}" -- cgit v1.0