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
|
#!/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 ===
|
# === Konfiguration ===
|
||||||
REPO_URL="https://git.0xmax42.io/maxp/systemd-timer/releases/download/latest"
|
REPO_URL="https://git.0xmax42.io/maxp/systemd-timer/releases/download/latest"
|
||||||
|
Reference in New Issue
Block a user