From aeb3369fe0baf1bc1344baff00d2c996325167c8 Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Sun, 25 Feb 2024 08:24:12 -0500 Subject: [PATCH] Allow file to be overwritten in the curl scripts --- src/scripts/create.sh | 2 +- src/scripts/upgrade.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/create.sh b/src/scripts/create.sh index ee1165c..9657143 100755 --- a/src/scripts/create.sh +++ b/src/scripts/create.sh @@ -7,7 +7,7 @@ filepath=$(mktemp -u -t "bld-$version.jar") echo "Downloading bld v$version..." echo -curl -L -s "https://github.com/rife2/bld/releases/download/$version/bld-$version.jar" -o "$filepath" +curl -L -s "https://github.com/rife2/bld/releases/download/$version/bld-$version.jar" > "$filepath" echo "Welcome to bld v$version." java -jar "$filepath" create diff --git a/src/scripts/upgrade.sh b/src/scripts/upgrade.sh index 3beffa9..21c8ee9 100755 --- a/src/scripts/upgrade.sh +++ b/src/scripts/upgrade.sh @@ -7,7 +7,7 @@ filepath=$(mktemp -u -t "bld-$version.jar") echo "Downloading bld v$version..." echo -curl -L -s "https://github.com/rife2/bld/releases/download/$version/bld-$version.jar" -o "$filepath" +curl -L -s "https://github.com/rife2/bld/releases/download/$version/bld-$version.jar" > "$filepath" echo "Welcome to bld v$version." java -jar "$filepath" upgrade