Remove target directories on cleanup

This commit is contained in:
Jørn Åne de Jong 2022-05-25 12:04:36 +02:00 committed by Nico Schottelius
parent 2b71524438
commit 02e273faf4

View file

@ -39,7 +39,9 @@ cleanup() {
zpool export $ZPOOL_TMP ||:
mdconfig -du md0 ||:
mdconfig -du md1 ||:
rm -rf "$CLOUDSETUP_WORK"
rm -rf "$CLOUDSETUP_WORK" ||:
rmdir "$ZFSTARGET" ||:
rmdir "$UFSTARGET" ||:
}
trap cleanup EXIT