Fix build when required without export

master
Marko Semet 2020-01-20 11:54:05 +01:00
parent eae08ee476
commit ff28e80769
1 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,11 @@
# Args: <config-file> <arch> <builder-args> [<repo>]
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."