build-distro: fix -r short flag not registered in getopt

parent 27578820
...@@ -113,7 +113,7 @@ move_iso() { ...@@ -113,7 +113,7 @@ move_iso() {
mv -vf "$TMP"/out/ximper-*.iso "$VMDIR"/"$DFILENAME" mv -vf "$TMP"/out/ximper-*.iso "$VMDIR"/"$DFILENAME"
} }
OPTS=$(getopt -o h --long help,nvidia,all,debug,clean,de:,net,network,repos: -- "$@") || { OPTS=$(getopt -o h,r: --long help,nvidia,all,debug,clean,de:,net,network,repos: -- "$@") || {
print_error "Ошибка обработки опций." print_error "Ошибка обработки опций."
} }
...@@ -169,7 +169,7 @@ while true; do ...@@ -169,7 +169,7 @@ while true; do
NETWORK="--network" NETWORK="--network"
shift shift
;; ;;
--repos) -r|--repos)
REPOS="$2" REPOS="$2"
shift 2 shift 2
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment