exit while bug
This commit is contained in:
parent
62d2788510
commit
4f75c4b0dc
@ -33,6 +33,7 @@ while [ ${#} -gt 0 ]; do
|
|||||||
--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;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
MOUNTDIR="${MOUNTBASEDIR}/${2}";
|
MOUNTDIR="${MOUNTBASEDIR}/${2}";
|
||||||
|
@ -25,6 +25,7 @@ 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;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
MOUNTDIR="${MOUNTBASEDIR}/${2}";
|
MOUNTDIR="${MOUNTBASEDIR}/${2}";
|
||||||
|
Loading…
Reference in New Issue
Block a user