From 99720057553ddd701b25c145040e2c33792fe3e4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 6 Sep 2024 23:47:00 +0200 Subject: [PATCH] spcd_eval --- spcd/bootstrap.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index d621bfe..18e53fb 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -247,6 +247,13 @@ nameserver ${value} fi } +spcd_eval() { + if [ -n "${1}" ]; then + echo "${@}" + eval "${@}" + fi +} + # ╭───────────┬───────╮ # │ functions │ error │ # ╰───────────┴───────╯