diff --git a/spcd/main.sh b/spcd/main.sh index d1d782f..c938314 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -229,6 +229,16 @@ spcd_os_mkdir() { fi } +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}\"" + done + fi +} + spcd_os_rm() { spcd_os_rm__path="${1}" if [ -e "${spcd_os_rm__path}" ]; then @@ -1085,16 +1095,6 @@ spcd_cat() { fi } -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}\"" - done - fi -} - spcd_install_package() { spcd_install_package__name="${1}" if [ -n "${spcd_install_package__name}" ]; then