Skip to content

Commit fc4f62c

Browse files
committed
Fix variables in deploy script
1 parent 6053032 commit fc4f62c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/deploy-android-template.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ while [[ $# -gt 0 ]]; do
3030
;;
3131
*)
3232
# First non-option argument is GODOT_VERSION
33-
if [[ -z "$GODOT_VERSION" ]]; then
34-
GODOT_VERSION="$1"
33+
if [[ -z "$godot_version" ]]; then
34+
godot_version="$1"
3535
else
3636
echo "Error: Unexpected argument '$1'"
3737
echo ""
@@ -43,17 +43,17 @@ while [[ $# -gt 0 ]]; do
4343
done
4444

4545
# Check if required argument is provided
46-
if [[ -z "$GODOT_VERSION" ]]; then
46+
if [[ -z "$godot_version" ]]; then
4747
echo "Error: GODOT_VERSION argument is required"
4848
echo ""
4949
usage
5050
fi
5151

52-
echo "Installing Android template for Godot version: $GODOT_VERSION"
52+
echo "Installing Android template for Godot version: $godot_version"
5353

5454
# Download Godot templates
55-
archive_file=Godot_v${GODOT_VERSION}_export_templates.tpz
56-
url=https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}/${archive_file}
55+
archive_file=Godot_v${godot_version}_export_templates.tpz
56+
url=https://github.com/godotengine/godot-builds/releases/download/${godot_version}/${archive_file}
5757
echo "Downloading templates from: $url"
5858
curl -L -o templates.zip "${url}"
5959

0 commit comments

Comments
 (0)