fix(install): ensure compatibility with non-bash shells
All checks were successful
Auto Changelog & Release / detect-version-change (push) Successful in 3s
Auto Changelog & Release / release (push) Has been skipped
Auto Changelog & Release / changelog-only (push) Successful in 5s

- Add conditional to enable fail-safe mode only for bash shells
This commit is contained in:
2025-05-22 10:35:17 +02:00
parent 7b5b855774
commit 20d143035e

View File

@@ -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