diff --git a/usm b/usm index 8066f69..f12b41b 100755 --- a/usm +++ b/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