fixed home directory path issue

This commit is contained in:
shockrah 2019-09-07 16:17:33 -07:00
parent dc5cd96f97
commit 66e777694b

4
usm
View File

@ -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