#git_conn_check || exit
echo ">Pull $REPO_NAME branch=$REPO_BRANCH user=$(whoami) path=$REPO_ROOT"
+
git pull >&$F_INDENT1 || exit
+
if [ "$CLEANUP" = "1" ]
then
echo " >git gc cleanup"
# git status
#
echo " >git status"
-git status --short
+git status --short >&$F_INDENT2
--verbose|-v) VERBOSE=$(($VERBOSE+1)) ;;
--debug|-debug|-d) DEBUG=$(($DEBUG+1)) ;;
+ -*) echo "Unknow option: $1 at $0!"; exit -1; ;;
*) REPO_NAME_FILTER="$REPO_NAME_FILTER $1" ;;
esac
if [ "$POST_INFO" = "1" ]
then
- echo
echo " >Post repo infos"
(
nb_api_post_host_info "$preff.name" "$name"
nb_api_post_host_info "$preff.exit_code" "$ex_repo"
) 2>/dev/null | sed -E -e 's/^/ /; s/'$'\t''/: /'
fi
- echo
done
nb_api_post_hosts_infos | tee /run/nb/sys.csv.tmp | sed -e 's/^/ /; s/'$'\t''/: /'
[ -e /run/nb/sys.csv.tmp ] && sed -e 's/^sys\.//' /run/nb/sys.csv.tmp > /run/nb/sys.csv
rm -f /run/nb/sys.csv.tmp
- echo
fi
fi
# End
#
rm -f "$TMP"
+echo
if [ "$ex" = "0" ]; then
printf ">OK\n"
else