From 20d143035ec6893f680b68dc4a2f6319ca7a5b81 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Thu, 22 May 2025 10:35:17 +0200 Subject: [PATCH] fix(install): ensure compatibility with non-bash shells - Add conditional to enable fail-safe mode only for bash shells --- scripts/install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 0708276..e0b1130 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash -set -euo pipefail + +# Fail-safe bash mode (only if bash is used) +if [ -n "$BASH_VERSION" ]; then + set -euo pipefail +else + set -eu +fi # === Konfiguration === REPO_URL="https://git.0xmax42.io/maxp/systemd-timer/releases/download/latest" @@ -45,4 +51,4 @@ else fi echo "✅ Installation complete: $(command -v ${BINARY_NAME})" -"${BINARY_NAME}" --version || true +"${BINARY_NAME}" --version || true \ No newline at end of file