diff options
author | Andrew Cady <d@jerkface.net> | 2019-06-19 15:13:21 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-06-19 15:13:21 -0400 |
commit | 864a3a06cf3c90e7ab0fc7edc5eb93c870896ded (patch) | |
tree | a45dd5d9c10d84e6e74983b9cd060eaac11b95c1 | |
parent | 3d873c5f4e165634205f060a862197eb46e76602 (diff) |
remember to remove temporary directories
-rw-r--r-- | src/initrd/btrfs-create.sh | 1 |
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" |