summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-01 15:38:49 +0200
committerErich Eckner <git@eckner.net>2017-06-01 15:38:49 +0200
commit30f6a87039bb9af0c0fbb3b9dc41bf7cb7c2c558 (patch)
tree46c9610b2ded544804924b2880d7c4d8442bb4af
parentab3fc7f85098f0c6d2df3911a9e5a5a6bb814d3d (diff)
downloadbuild-arch-iso-30f6a87039bb9af0c0fbb3b9dc41bf7cb7c2c558.tar.xz
add clean up
-rwxr-xr-xbuild-arch-iso5
1 files changed, 3 insertions, 2 deletions
diff --git a/build-arch-iso b/build-arch-iso
index 7c76b8f..a7eb1e5 100755
--- a/build-arch-iso
+++ b/build-arch-iso
@@ -7,8 +7,7 @@ if [ "$(whoami)" != "root" ]; then
exit $?
fi
-tmp_dir="$(mktemp -d)"
-destination="${tmp_dir}"
+destination="$(mktemp -d)"
systemctl stop boinc
@@ -30,4 +29,6 @@ cp /usr/share/archiso/configs/releng/out/archlinux-*.iso "${destination}/"
rsync -v "'"${destination}"'/"archlinux-*.iso /mnt/archlinux32/archisos/testing/
+rm -rf --one-file-system "${destination}"
+
systemctl start boinc