mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
fix error suppression
This commit is contained in:
parent
c735960ff8
commit
456d12fb58
@ -36,9 +36,10 @@ if [[ $status -eq 0 ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if grep -q "version '.*' in target triple" <<< "$output"; then
|
||||
output=$(grep -v "version '.*' in target triple" <<< "$output")
|
||||
status=0
|
||||
if echo "$output" | grep -qE "version '.*' in target triple"; then
|
||||
filtered_output=$(echo "$output" | grep -vE "version '.*' in target triple")
|
||||
echo "$filtered_output"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec zig cc $TARGET $COMPILER_EXTRA "${PARSED_ARGS[@]}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user