spcd_eval

This commit is contained in:
Marc Beninca 2024-09-06 23:47:00 +02:00
parent dd1a9ed807
commit 9972005755
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -247,6 +247,13 @@ nameserver ${value}
fi fi
} }
spcd_eval() {
if [ -n "${1}" ]; then
echo "${@}"
eval "${@}"
fi
}
# ╭───────────┬───────╮ # ╭───────────┬───────╮
# │ functions │ error │ # │ functions │ error │
# ╰───────────┴───────╯ # ╰───────────┴───────╯