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() {
|
spcd_os_printenv() {
|
||||||
if [ -n "${1}" ]; then
|
if [ -n "${1}" ]; then
|
||||||
for spcd_os_printenv__name in "${@}"; do
|
local name
|
||||||
spcd_os_printenv__text=""
|
local text
|
||||||
eval "spcd_os_printenv__text=\"\${${spcd_os_printenv__name}}\""
|
for name in "${@}"; do
|
||||||
echo "${spcd_os_printenv__name} = \"${spcd_os_printenv__text}\""
|
eval "text=\"\${${name}}\""
|
||||||
|
echo "${name} = \"${text}\""
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue