Also remove extracted images on error
This commit is contained in:
parent
70a5a46b6d
commit
e86a06f07d
1 changed files with 1 additions and 0 deletions
1
arkdep
1
arkdep
|
@ -77,6 +77,7 @@ cleanup_and_quit () {
|
|||
if [[ -n ${data[0]} ]]; then
|
||||
btrfs property set -f -ts $(readlink -m $arkdep_dir/deployments/${data[0]}/rootfs) ro false
|
||||
rm -rf $arkdep_dir/deployments/${data[0]}
|
||||
rm $arkdep_dir/cache/${data[0]}-*.img
|
||||
rm -rf /boot/arkdep/${data[0]}
|
||||
rm /boot/loader/entries/${data[0]}.conf
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue