mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
CLI: fixed --test-upgrade command
This commit is contained in:
parent
9e5eece8f1
commit
1427a0395a
|
@ -124,14 +124,20 @@ for i in "$@"; do
|
|||
fi
|
||||
;;
|
||||
--test-upgrade*)
|
||||
if [[ "$2" =~ ^.+ ]]; then
|
||||
echo "You are about to test upgrading RetroDECK from version $2 to $hard_version"
|
||||
read -p "Enter 'y' to continue, 'n' to start RetroDECK normally: " response
|
||||
if [[ $response == [yY] ]]; then
|
||||
version="$2"
|
||||
shift
|
||||
logging_level="debug" # Temporarily enable debug
|
||||
shift 2
|
||||
else
|
||||
shift
|
||||
fi
|
||||
else
|
||||
echo "Error: Invalid format. Usage: --test-upgrade <version>"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# Assume unknown arguments are game start arguments
|
||||
|
|
Loading…
Reference in a new issue