diff --git a/scripts/data-path-fix.sh b/scripts/data-path-fix.sh index fa36383..1998482 100755 --- a/scripts/data-path-fix.sh +++ b/scripts/data-path-fix.sh @@ -13,7 +13,7 @@ MOONRAKER_LOG="${LOG_PATH}/moonraker.log" ALIAS="moonraker" # Parse command line arguments -while getopts "c:l:d:a:m:" arg; do +while getopts "c:l:d:a:m:g:" arg; do case $arg in c) MOONRAKER_CONF=$OPTARG @@ -35,6 +35,10 @@ while getopts "c:l:d:a:m:" arg; do DB_PATH=$OPTARG [ ! -f "${DB_PATH}/data.mdb" ] && echo "No valid database found at ${DB_PATH}" && exit 1 ;; + g) + GCODE_PATH=$OPTARG + [ ! -d "${GCODE_PATH}" ] && echo "No GCode Path found at ${GCODE_PATH}" && exit 1 + ;; esac done