From 0f2a5946ce35f334a7dcd91dad28f8db0f41ed68 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 11 Mar 2019 05:21:18 +0000 Subject: [PATCH] bin/nb-update --- bin/nb-update | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/nb-update b/bin/nb-update index 223ffe2f..6b70314c 100755 --- a/bin/nb-update +++ b/bin/nb-update @@ -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 ##################################################################### -- 2.47.3