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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-11-10 08:12:31 +01:00
parent 4a60f1a120
commit 2783c75043
2 changed files with 135 additions and 1 deletions

View File

@@ -113,8 +113,18 @@ normalize_ssh_key_file() {
fi
if ! ssh-keygen -yf "${var_key_file}" >/dev/null; then
printf "\e[91m++++ ++++ ++++ ++++ ++++ ++++ ++ ❌ Failed check ssh-keygen -lf: [%s] \e[0m\n" "${var_key_file}"
return "${ERR_SANITIZING}"
fi
fi
sha256sum "${var_key_file}" >| "${var_key_file}.sha256sum.txt"
chmod 0444 "${var_key_file}.sha256sum.txt"
fi
return 0
@@ -139,7 +149,7 @@ normalize_ssh_keys_in_dir() {
shopt -s nullglob dotglob
if [[ -d "${var_key_dir}" ]]; then
if [[ ! -d "${var_key_dir}" ]]; then
shopt -u nullglob dotglob
return 0
fi