From 4f75c4b0dc40c13ddf258cc4790774c3355e7e83 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 16 Mar 2024 23:59:43 +0100 Subject: [PATCH] exit while bug --- sshfs-mount | 1 + sshfs-umount | 1 + 2 files changed, 2 insertions(+) diff --git a/sshfs-mount b/sshfs-mount index f9956d7..f8512e6 100755 --- a/sshfs-mount +++ b/sshfs-mount @@ -33,6 +33,7 @@ while [ ${#} -gt 0 ]; do --help) showHelp; exit 0;; -b | --bastion) BASTION="${2}"; shift; shift;; -d | --mountbase) MOUNTBASEDIR=$(realpath "${2}"); shift; shift;; + *) shift;; esac done MOUNTDIR="${MOUNTBASEDIR}/${2}"; diff --git a/sshfs-umount b/sshfs-umount index 2e137b3..7718ef6 100755 --- a/sshfs-umount +++ b/sshfs-umount @@ -25,6 +25,7 @@ while [ ${#} -gt 0 ]; do case ${1} in --help) showHelp; exit 0;; -d | --mountbase) MOUNTBASEDIR=$(realpath "${2}"); shift; shift;; + *) shift;; esac done MOUNTDIR="${MOUNTBASEDIR}/${2}";