fix(install): ensure compatibility with non-bash shells
- Add conditional to enable fail-safe mode only for bash shells
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user