fix(build): GCC15 segfault fallback, bin dir fix, check_nfqws --version
This commit is contained in:
+5
-3
@@ -112,8 +112,9 @@ describe_strategy() {
|
||||
esac
|
||||
}
|
||||
|
||||
# Verify the binary actually runs (catches segfaults/missing deps)
|
||||
check_nfqws() {
|
||||
if [[ ! -x "$BIN_DIR/nfqws" ]]; then
|
||||
if [[ ! -f "$BIN_DIR/nfqws" ]] || [[ ! -x "$BIN_DIR/nfqws" ]]; then
|
||||
echo ""
|
||||
print_red "ERROR: nfqws binary not found!"
|
||||
echo ""
|
||||
@@ -122,8 +123,9 @@ check_nfqws() {
|
||||
echo ""
|
||||
return 1
|
||||
fi
|
||||
# Verify the binary actually runs (catches segfaults/missing deps)
|
||||
if ! "$BIN_DIR/nfqws" --help >/dev/null 2>&1; then
|
||||
# Verify the binary actually runs (catches segfaults/missing deps).
|
||||
# Use --version because --help exits with code 1 in zapret.
|
||||
if ! "$BIN_DIR/nfqws" --version >/dev/null 2>&1; then
|
||||
echo ""
|
||||
print_red "ERROR: nfqws binary exists but does not run (segfault? missing deps?)"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user