V8.13.400.2025.11.08
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m16s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user