We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d561d0d commit bb75415Copy full SHA for bb75415
src/bin/install
@@ -24,9 +24,16 @@ if [[ "$1" == "-y" ]] || [[ "$CI" == "1" ]] || [[ "$CI" == "true" ]]; then
24
CI="1"
25
fi
26
27
+# check if DEFANG_INSTALL_VERSION is set and set the release path accordingly
28
+if [[ -z "$DEFANG_INSTALL_VERSION" ]]; then
29
+ RELEASE_PATH="/latest"
30
+else
31
+ RELEASE_PATH="/tags/$DEFANG_INSTALL_VERSION"
32
+fi
33
+
34
# Use curl to fetch the latest release data
35
echo "Fetching the latest release information..."
-RELEASE_JSON=$(curl -s -L https://api.github.com/repos/DefangLabs/defang/releases/latest)
36
+RELEASE_JSON=$(curl -s -L https://api.github.com/repos/DefangLabs/defang/releases$RELEASE_PATH)
37
38
# Check for curl failure
39
if [ $? -ne 0 ]; then
0 commit comments