From 66e777694b7e954b6af62132b8c8d19ed3be9da1 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 7 Sep 2019 16:17:33 -0700 Subject: [PATCH] fixed home directory path issue --- usm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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