diff --git a/scripts/helpers/misc.sh b/scripts/helpers/misc.sh index febfa2d..2dc0a6c 100644 --- a/scripts/helpers/misc.sh +++ b/scripts/helpers/misc.sh @@ -65,10 +65,9 @@ update_git_repo() { echo "Cloning repo from $url to $path" git clone "$url" "$path" - chmod +x "$build_command" - echo "Building $url" pushd "$path" > /dev/null + chmod +x "$build_command" eval "$build_command" popd > /dev/null @@ -92,10 +91,9 @@ update_git_repo() { echo 'Pulling...' git -C "$path" pull - chmod +x "$build_command" - echo "Building $url" pushd "$path" > /dev/null + chmod +x "$build_command" eval "$build_command" popd > /dev/null