From: Nicolas Boisselier Date: Thu, 21 Dec 2017 04:19:27 +0000 (+0000) Subject: bin/nb-update X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a5df8a0ebb374547f812220e1e3fe36f136213b1;p=nb.git bin/nb-update --- 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() {