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;
|
if grep -qs "$dev" /proc/mounts;
|
||||||
then
|
then
|
||||||
# unmount the drive
|
# unmount the drive
|
||||||
umount "~/.mounts/$name"
|
umount "$HOME/.mounts/$name"
|
||||||
rm -d "~/.mounts/$name"
|
rm -d "$HOME/.mounts/$name"
|
||||||
# check if we still need the .mounts directory or nah
|
# check if we still need the .mounts directory or nah
|
||||||
if [ "`ls ~/.mounts/`" ]
|
if [ "`ls ~/.mounts/`" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user