AK3: reset_ak: don't remove $ramdisk unless has already been unpacked

- running reset_ak before an unpack would remove any included ramdisk files from zip, so only remove if $split_img is detected suggesting an unpack has already occurred
This commit is contained in:
osm0sis committed 2019-07-20 23:12:51 -03:00
1 parent f1494f366d
commit 958b2c873a
1 file changed
+2 -1
+2 -1
View File
@@ -606,7 +606,8 @@ reset_ak() {
test -e $i && cp -af $i $current;
done;
fi;
rm -rf $bootimg $ramdisk $split_img $home/*-new* $home/*-files/current;
test -d $split_img && rm -rf $ramdisk;
rm -rf $bootimg $split_img $home/*-new* $home/*-files/current;
if [ "$1" == "keep" ]; then
test -d $home/rdtmp && mv -f $home/rdtmp $ramdisk;