Fixing trap call, thanks to An-Cheng Huang <ancheng@vyatta.com>.
This commit is contained in:
parent
6becfab50d
commit
7059380cd8
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue