forked from mirrored-repos/manjaro-tools
[util-iso-image] fix grub.cfg cleanup
This commit is contained in:
parent
a9a5550c83
commit
24b3c8df6c
1 changed files with 4 additions and 1 deletions
|
@ -350,5 +350,8 @@ clean_up_image(){
|
|||
fi
|
||||
fi
|
||||
find "$1" -name *.pacnew -name *.pacsave -name *.pacorig -delete
|
||||
[[ -f $1/boot/grub/grub.cfg ]] && rm $1/boot/grub/grub.cfg
|
||||
file=$1/boot/grub/grub.cfg
|
||||
if [[ -f "$file" ]]; then
|
||||
rm $file
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue