]> git.nbdom.net Git - nb.git/commitdiff
bin/nb-update
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 21 Dec 2017 04:19:27 +0000 (04:19 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 21 Dec 2017 04:19:27 +0000 (04:19 +0000)
etc/profile.d/nb.sh

index f4754b419310037ee059553bd70c6ded1c5c9328..f0e1e570d516843aba343a763fee9294198c90ff 100644 (file)
@@ -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() {