Fixing trap call, thanks to An-Cheng Huang <ancheng@vyatta.com>.
This commit is contained in:
parent
e6d09c8eeb
commit
30d76edc02
|
@ -30,7 +30,7 @@ Create_lockfile ()
|
||||||
mkdir -p "${DIRECTORY}"
|
mkdir -p "${DIRECTORY}"
|
||||||
|
|
||||||
# Creating lock trap
|
# 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
|
# Creating lock file
|
||||||
touch "${FILE}"
|
touch "${FILE}"
|
||||||
|
|
Loading…
Reference in New Issue