]> git.nbdom.net Git - nb.git/commitdiff
bin/nb-update
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 11 Mar 2019 05:21:18 +0000 (05:21 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 11 Mar 2019 05:21:18 +0000 (05:21 +0000)
bin/nb-update

index 223ffe2f2feb27e79ebbbf4121de05d340e576e1..6b70314ca09688a3fae6bff0cc760a71ff1612ef 100755 (executable)
@@ -32,7 +32,7 @@ export GIT_SSH="$TMP"
 # Repos
 #
 filter_name="$@"
-for repo in $(nb_repos); do
+for dir in $(nb_repos); do
 
        [ -d "$dir/.git" ] || continue
        [ ! -w "$dir/.git" ] && echo ">No Permission $dir" && echo && continue
@@ -124,7 +124,7 @@ for repo in $(nb_repos); do
                nb_api_post_host_info "$preff.branch" "$branch"
                nb_api_post_host_info "$preff.url" "$(git remote get-url origin)"
                nb_api_post_host_info "$preff.exit_code" "$(git status --short &> /dev/null; echo $?)"
-       ) 2>/dev/null | sed -E -e 's/^/    POST /; s/'$'\t''/: /'
+       ) 2>/dev/null | sed -E -e 's/^/    /; s/'$'\t''/: /'
        echo
 
 done
@@ -138,6 +138,7 @@ if [ ! -e /run/$NAME-nb_api_post_sys_infos.lock ]; then
        touch /run/$NAME-nb_api_post_sys_infos.lock
        echo ">Post sys infos"
        nb_api_post_hosts_infos | sed -e 's/^/  /; s/'$'\t''/: /'
+       echo
 fi
 
 #####################################################################