echo
(
nb_api_post_host_info "${NAME}.$repo" "name:$name branch:$branch"
+ nb_api_post_host_info "${NAME}.$repo.git.status.exit_code" "$(git status --short &> /dev/null; echo $?)"
# NB 06.02.18 key="repo.$name.$branch"
# NB 06.02.18 nb_api_post_host_info "${key}.path" "$repo"
# NB 06.02.18 nb_api_post_host_info "${key}.exit_code" "$ex"
(
. /etc/os-release && echo $ID $VERSION
)
+
+ elif wich sw_vers > /dev/null; then
+ echo $(sw_vers 2>/dev/null | awk -F':\t' '/^(ProductName|ProductVersion)/{print $2}' | head -2) && return
+
fi
#[ -r /etc/debian_version ] && echo Debian $(cat /etc/debian_version) && return
- echo $(sw_vers 2>/dev/null | awk -F':\t' '/^(ProductName|ProductVersion)/{print $2}' | head -2) && return
}