Fix submodules script

This commit is contained in:
Ashcon Partovi
2024-08-07 14:03:20 -07:00
parent 76a3dc268d
commit d74a192345
2 changed files with 8 additions and 11 deletions

View File

@@ -23,22 +23,18 @@ while getopts "f" opt; do
esac
done
if [ "$RELEASE" == "1" ]; then
FORCE=1
fi
BUILT_ANY=0
SUBMODULES=
CACHE_DIR=
CACHE=0
if [ -n "$BUN_DEPS_CACHE_DIR" ]; then
CACHE_DIR="$BUN_DEPS_CACHE_DIR"
mkdir -p "$CACHE_DIR"
CACHE=1
SUBMODULES="$(git submodule status)"
fi
mkdir -p "$BUN_DEPS_OUT_DIR"
if [ "$RELEASE" == "1" ]; then
FORCE=1
elif [ -n "$BUN_DEPS_CACHE_DIR" ]; then
CACHE_DIR="$BUN_DEPS_CACHE_DIR"
CACHE=1
SUBMODULES="$(git submodule status)"
fi
dep() {
local submodule="$1"