V8.13.404.2025.11.10
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m27s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-11-10 16:03:39 +01:00
parent 95d5de1b26
commit 3c4aa96744
3 changed files with 15 additions and 5 deletions

View File

@@ -12,10 +12,14 @@
set -Ceuo pipefail
printf "\e[95m++++ ++++ ++++ ++++ ++++ ++++ ++ 🧪 '%s' starting ... \e[0m\n" "${0}"
declare _key="" _old_nullglob=""
declare _key="" _old_nullglob="" _old_dotglob="" _old_failglob=""
### Enable nullglob/dotglob, disable failglob for safe globbing.
_old_nullglob="$(shopt -p nullglob || true)"
_old_failglob="$(shopt -p failglob || true)"
shopt -s nullglob
shopt -u failglob
cd /etc/ssh
@@ -110,6 +114,7 @@ fi
/usr/sbin/sshd -t || exit 42
eval "${_old_nullglob}" 2>/dev/null || true
eval "${_old_failglob}" 2>/dev/null || true
printf "\e[92m++++ ++++ ++++ ++++ ++++ ++++ ++ ✅ '%s' applied successfully. \e[0m\n" "${0}"