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
|
fi
|
||||||
;;
|
;;
|
||||||
--test-upgrade*)
|
--test-upgrade*)
|
||||||
|
if [[ "$2" =~ ^.+ ]]; then
|
||||||
echo "You are about to test upgrading RetroDECK from version $2 to $hard_version"
|
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
|
read -p "Enter 'y' to continue, 'n' to start RetroDECK normally: " response
|
||||||
if [[ $response == [yY] ]]; then
|
if [[ $response == [yY] ]]; then
|
||||||
version="$2"
|
version="$2"
|
||||||
shift
|
logging_level="debug" # Temporarily enable debug
|
||||||
|
shift 2
|
||||||
else
|
else
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "Error: Invalid format. Usage: --test-upgrade <version>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Assume unknown arguments are game start arguments
|
# Assume unknown arguments are game start arguments
|
||||||
|
|
Loading…
Reference in a new issue