exit while bug

This commit is contained in:
2024-03-17 00:02:25 +01:00
parent 4f75c4b0dc
commit eee602c785
2 changed files with 10 additions and 5 deletions

View File

@@ -25,9 +25,11 @@ while [ ${#} -gt 0 ]; do
case ${1} in
--help) showHelp; exit 0;;
-d | --mountbase) MOUNTBASEDIR=$(realpath "${2}"); shift; shift;;
*) shift;;
*)
MOUNTDIR="${MOUNTBASEDIR}/${2}";
shift
;;
esac
done
MOUNTDIR="${MOUNTBASEDIR}/${2}";
main