This commit is contained in:
Marc Beninca 2024-08-25 21:29:21 +02:00
parent 161dd791f0
commit 5bc53b317c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -229,6 +229,16 @@ spcd_os_mkdir() {
fi 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() {
spcd_os_rm__path="${1}" spcd_os_rm__path="${1}"
if [ -e "${spcd_os_rm__path}" ]; then if [ -e "${spcd_os_rm__path}" ]; then
@ -1085,16 +1095,6 @@ spcd_cat() {
fi 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() {
spcd_install_package__name="${1}" spcd_install_package__name="${1}"
if [ -n "${spcd_install_package__name}" ]; then if [ -n "${spcd_install_package__name}" ]; then