Fixing trap call, thanks to An-Cheng Huang <ancheng@vyatta.com>.

This commit is contained in:
Daniel Baumann 2007-11-11 21:29:25 +01:00
parent e6d09c8eeb
commit 30d76edc02
1 changed files with 1 additions and 1 deletions

View File

@ -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}"