util-iso-chroot: use local var

This commit is contained in:
udeved 2017-05-11 11:30:41 +02:00
parent 33d311cee6
commit f0cb781d71

View file

@ -198,7 +198,7 @@ clean_up_image(){
local path mnt="$1" local path mnt="$1"
msg2 "Cleaning [%s]" "${mnt##*/}" msg2 "Cleaning [%s]" "${mnt##*/}"
if [[ ${1##*/} == 'mhwdfs' ]];then if [[ ${mnt##*/} == 'mhwdfs' ]];then
path=$mnt/var path=$mnt/var
if [[ -d $path ]];then if [[ -d $path ]];then
find "$path" -mindepth 0 -delete &> /dev/null find "$path" -mindepth 0 -delete &> /dev/null