Remove target directories on cleanup
This commit is contained in:
parent
2b71524438
commit
02e273faf4
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue