turn ssh arguments into environment variables
Some checks failed
/ job (push) Failing after 10m37s

This commit is contained in:
Marc Beninca 2024-07-29 10:26:07 +02:00
parent ee69c088c2
commit e99ced2a20
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 15 additions and 8 deletions

10
spcd.sh
View file

@ -45,9 +45,13 @@ spcd_main() {
spcd_list_environment_variables() {
spcd_step "List environment variables"
for spcd_lev__name in $(printenv | cut -d = -f 1 | sort); do
spcd_lev__text=""
eval "spcd_lev__text=\"\${${spcd_lev__name}}\""
echo "${spcd_lev__name}=${spcd_lev__text}"
if [ "${spcd_lev__name}" != "SPCD_SSH_KEY" ]; then
spcd_lev__text=
eval "spcd_lev__text=\"\${${spcd_lev__name}}\""
echo "${spcd_lev__name}=${spcd_lev__text}"
else
echo "${spcd_lev__name}"
fi
done
}