fixes
This commit is contained in:
@@ -13,7 +13,6 @@ _helpexit() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
[[ -z "$1" ]] && _menu
|
||||
for (( i=1; i<=$#; i++ )); do
|
||||
[[ ${!i} = "-h" ]] && _helpexit
|
||||
[[ ${!i} = "--help" ]] && _helpexit
|
||||
@@ -33,6 +32,7 @@ mountpath=~/mnt/am/"$valid_name"
|
||||
if [[ "$unmount" = true ]]; then
|
||||
cd ~/mnt
|
||||
if [[ -n "$archive" ]]; then
|
||||
echo Unmounting "$mountpath"
|
||||
fusermount -u -z "$mountpath"
|
||||
rmdir --ignore-fail-on-non-empty "$mountpath" &>/dev/null
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user