summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-06-19 15:13:21 -0400
committerAndrew Cady <d@jerkface.net>2019-06-19 15:13:21 -0400
commit864a3a06cf3c90e7ab0fc7edc5eb93c870896ded (patch)
treea45dd5d9c10d84e6e74983b9cd060eaac11b95c1
parent3d873c5f4e165634205f060a862197eb46e76602 (diff)
remember to remove temporary directories
-rw-r--r--src/initrd/btrfs-create.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/initrd/btrfs-create.sh b/src/initrd/btrfs-create.sh
index 952d25f..26fa263 100644
--- a/src/initrd/btrfs-create.sh
+++ b/src/initrd/btrfs-create.sh
@@ -137,6 +137,7 @@ make_subvolume_idem()
137 rmdir "$1" || mv "$1" "$1"~ 137 rmdir "$1" || mv "$1" "$1"~
138 btrfs subvolume create "$1" 138 btrfs subvolume create "$1"
139 mv "$1"~/* "$1"~/.* "$1"/ 2>&1 139 mv "$1"~/* "$1"~/.* "$1"/ 2>&1
140 rmdir "$1"~
140 else 141 else
141 if [ -e "$1" ]; then 142 if [ -e "$1" ]; then
142 rm -f "$1" 143 rm -f "$1"