From a5df8a0ebb374547f812220e1e3fe36f136213b1 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 21 Dec 2017 04:19:27 +0000 Subject: [PATCH] bin/nb-update --- etc/profile.d/nb.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/profile.d/nb.sh b/etc/profile.d/nb.sh index f4754b41..f0e1e570 100644 --- a/etc/profile.d/nb.sh +++ b/etc/profile.d/nb.sh @@ -87,13 +87,14 @@ nb_api_post() { local curl="nb_api /data/$table/replace.sh -d host=$host" + local args="$*" while [ "$#" -gt "0" ]; do curl="$curl -d \"$1\"" shift done ( - eval "$curl" - ) #> /dev/null + eval "$(eval "$curl")" #&& echo "$table: $rowCount: $args" + ) } nb_post_sys_infos() { -- 2.47.3