# 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
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
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
#####################################################################