fixed home directory path issue
This commit is contained in:
parent
dc5cd96f97
commit
66e777694b
4
usm
4
usm
@ -13,8 +13,8 @@ if [ -z "$dev" ]; then exit; fi
|
||||
if grep -qs "$dev" /proc/mounts;
|
||||
then
|
||||
# unmount the drive
|
||||
umount "~/.mounts/$name"
|
||||
rm -d "~/.mounts/$name"
|
||||
umount "$HOME/.mounts/$name"
|
||||
rm -d "$HOME/.mounts/$name"
|
||||
# check if we still need the .mounts directory or nah
|
||||
if [ "`ls ~/.mounts/`" ]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user