This commit is contained in:
parent
ee69c088c2
commit
e99ced2a20
3 changed files with 15 additions and 8 deletions
10
spcd.sh
10
spcd.sh
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue