exit: fix missing local scope

missed in c55eb8a0c3

Gbp-Dch: Ignore
This commit is contained in:
Lyndon Brown 2020-03-17 17:33:31 +00:00
parent d5dfe38bfb
commit bea349c822
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ Exit ()
# (e.g. due to running processes in chroot from user customizations)
Echo_message "Begin unmounting filesystems..."
local DIRECTORY
if [ -e /proc/mounts ]
then
for DIRECTORY in $(awk -v dir="${PWD}/chroot/" '$2 ~ dir { print $2 }' /proc/mounts | sort -r)