fix(synergy): ignore non-zero exit code of synergyc --help in pipefail

This commit is contained in:
2026-11-05 20:50:23 +01:00
parent bc7886d3ac
commit 967967e98f
2 changed files with 21 additions and 3 deletions
+2 -2
View File
@@ -24,9 +24,9 @@ find_active_server() {
return 1
}
# Determine crypto flag based on synergyc build
# Determine crypto flag based on synergyc build (note: synergyc --help exits with code 3)
CRYPTO_FLAG=""
if /usr/local/bin/synergyc --help 2>&1 | grep -q -- '--disable-crypto'; then
if (/usr/local/bin/synergyc --help 2>&1 || true) | grep -q -- '--disable-crypto'; then
CRYPTO_FLAG="--disable-crypto"
fi