forked from mirrored-repos/manjaro-tools
util-iso-chroot: use local var
This commit is contained in:
parent
33d311cee6
commit
f0cb781d71
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue