Skip to content

Commit 08bb5bb

Browse files
committed
Fixed mountpoint cleanup issue #50
1 parent deda2cb commit 08bb5bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rpi-clone

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# This updated code is located in a fork of Bill Wilson's git repository
1111
# at https://github.com/geerlingguy/rpi-clone
1212

13-
version=2.0.23
13+
version=2.0.24
1414

1515
# setup trusted paths for dependancies (like rsync, grub, fdisk, etc)
1616
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
@@ -264,6 +264,10 @@ unmount_list()
264264
then
265265
qecho " Failed to unmount: $dir"
266266
fi
267+
if ! rmdir $dir
268+
then
269+
qecho " Failed to rmdir: $dir"
270+
fi
267271
done
268272
}
269273

0 commit comments

Comments
 (0)