exit while bug
This commit is contained in:
parent
4f75c4b0dc
commit
eee602c785
@ -27,15 +27,18 @@ main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MOUNTBASEDIR=$(realpath ~/Remotes)
|
MOUNTBASEDIR=$(realpath ~/Remotes)
|
||||||
TARGET=${1};
|
|
||||||
while [ ${#} -gt 0 ]; do
|
while [ ${#} -gt 0 ]; do
|
||||||
case ${1} in
|
case ${1} in
|
||||||
--help) showHelp; exit 0;;
|
--help) showHelp; exit 0;;
|
||||||
-b | --bastion) BASTION="${2}"; shift; shift;;
|
-b | --bastion) BASTION="${2}"; shift; shift;;
|
||||||
-d | --mountbase) MOUNTBASEDIR=$(realpath "${2}"); shift; shift;;
|
-d | --mountbase) MOUNTBASEDIR=$(realpath "${2}"); shift; shift;;
|
||||||
*) shift;;
|
*)
|
||||||
|
TARGET=${1};
|
||||||
|
MOUNTDIR="${MOUNTBASEDIR}/${2}";
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
MOUNTDIR="${MOUNTBASEDIR}/${2}";
|
|
||||||
|
|
||||||
main
|
main
|
||||||
|
@ -25,9 +25,11 @@ while [ ${#} -gt 0 ]; do
|
|||||||
case ${1} in
|
case ${1} in
|
||||||
--help) showHelp; exit 0;;
|
--help) showHelp; exit 0;;
|
||||||
-d | --mountbase) MOUNTBASEDIR=$(realpath "${2}"); shift; shift;;
|
-d | --mountbase) MOUNTBASEDIR=$(realpath "${2}"); shift; shift;;
|
||||||
*) shift;;
|
*)
|
||||||
|
MOUNTDIR="${MOUNTBASEDIR}/${2}";
|
||||||
|
shift
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
MOUNTDIR="${MOUNTBASEDIR}/${2}";
|
|
||||||
|
|
||||||
main
|
main
|
||||||
|
Loading…
Reference in New Issue
Block a user