diff --git a/build_when_required.sh b/build_when_required.sh index 60edc1e..fde7e7f 100755 --- a/build_when_required.sh +++ b/build_when_required.sh @@ -2,7 +2,11 @@ # Args: [] CONFIG_DIR="$(dirname "$0")" && -"$CONFIG_DIR/hash_modules.py" --require-build --installed "$1" "$2" && -exec "$CONFIG_DIR/build.sh" "$@" +if [ -z "$4" ]; then + exec "$CONFIG_DIR/build.sh" "$@" +else + "$CONFIG_DIR/hash_modules.py" --require-build --installed "$1" "$2" && + exec "$CONFIG_DIR/build.sh" "$@" +fi echo "No rebuild required." \ No newline at end of file