From ff28e8076918186fc3432fff972ee6290a8d1efc Mon Sep 17 00:00:00 2001 From: Marko Semet Date: Mon, 20 Jan 2020 11:54:05 +0100 Subject: [PATCH] Fix build when required without export --- build_when_required.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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