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 a616f93 commit 8ffef13Copy full SHA for 8ffef13
src/build-scripts/build_ninja.bash
@@ -14,8 +14,11 @@ NINJA_VERSION=${NINJA_VERSION:=1.10.2}
14
NINJA_BRANCH=${NINJA_BRANCH:=v${NINJA_VERSION}}
15
NINJA_INSTALL_DIR=${NINJA_INSTALL_DIR:=${LOCAL_DEPS_DIR}/dist/bin}
16
17
-if [ ! -f $DOWNLOADS_DIR/ninja-${NINJA_VERSION}.zip ]; then
18
- curl --location ${NINJA_REPO}/archive/${NINJA_BRANCH}.tar.gz -o $DOWNLOADS_DIR/ninja-${NINJA_BRANCH}.tar.gz
+mkdir -p "$DOWNLOADS_DIR"
+
19
+# Check if the tar exist, download it if not
20
+if [ ! -f $DOWNLOADS_DIR/ninja-v${NINJA_VERSION}.tar.gz ]; then
21
+ curl --location ${NINJA_REPO}/archive/refs/tags/${NINJA_BRANCH}.tar.gz -o $DOWNLOADS_DIR/ninja-${NINJA_BRANCH}.tar.gz
22
fi
23
24
tar xf $DOWNLOADS_DIR/ninja-${NINJA_BRANCH}.tar.gz
0 commit comments