From f0cb781d7184e83f362356aa74905bfc34ca7e82 Mon Sep 17 00:00:00 2001 From: udeved Date: Thu, 11 May 2017 11:30:41 +0200 Subject: [PATCH] util-iso-chroot: use local var --- lib/util-iso-chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util-iso-chroot.sh b/lib/util-iso-chroot.sh index a6794a6..7e2b852 100644 --- a/lib/util-iso-chroot.sh +++ b/lib/util-iso-chroot.sh @@ -198,7 +198,7 @@ clean_up_image(){ local path mnt="$1" msg2 "Cleaning [%s]" "${mnt##*/}" - if [[ ${1##*/} == 'mhwdfs' ]];then + if [[ ${mnt##*/} == 'mhwdfs' ]];then path=$mnt/var if [[ -d $path ]];then find "$path" -mindepth 0 -delete &> /dev/null