]> git.seodisparate.com - jumpartifact.com_demo_0/commitdiff
Fix third_party_build/wasm_make_raylib.sh
authorStephen Seo <seo.disparate@gmail.com>
Thu, 21 Mar 2024 07:36:35 +0000 (16:36 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 21 Mar 2024 07:36:35 +0000 (16:36 +0900)
First clone of raylib was not checking out the git tag.

third_party_build/wasm_make_raylib.sh

index 447d6b8e30326ae017dc3162a06333a1b67ae273..b697110f0d3d0ddc1939930bd109a66cac0de1c0 100755 (executable)
@@ -62,7 +62,9 @@ if ! [[ -d "$CLONE_DIR" ]] || ! [[ -d "$CLONE_DIR/.git" ]]; then
         echo "ERROR: Failed to clone Raylib into \"$CLONE_DIR\"!"
         exit 4
     fi
-elif ! (cd "$CLONE_DIR" && git fetch --all -p && git checkout "$RAYLIB_GIT_TAG"); then
+fi
+
+if ! (cd "$CLONE_DIR" && git fetch --all -p && git checkout "$RAYLIB_GIT_TAG"); then
     echo "ERROR: Failed to fetch/checkout in Raylib dir!"
     exit 5
 fi