diff options
-rwxr-xr-x | tools/ak3-core.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 4268992..e1ce1f7 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -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; |