os/printenv
This commit is contained in:
parent
2b37cc9479
commit
e0552167bf
1 changed files with 5 additions and 4 deletions
|
@ -243,10 +243,11 @@ spcd_os_mkdir() {
|
|||
|
||||
spcd_os_printenv() {
|
||||
if [ -n "${1}" ]; then
|
||||
for spcd_os_printenv__name in "${@}"; do
|
||||
spcd_os_printenv__text=""
|
||||
eval "spcd_os_printenv__text=\"\${${spcd_os_printenv__name}}\""
|
||||
echo "${spcd_os_printenv__name} = \"${spcd_os_printenv__text}\""
|
||||
local name
|
||||
local text
|
||||
for name in "${@}"; do
|
||||
eval "text=\"\${${name}}\""
|
||||
echo "${name} = \"${text}\""
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue