#!/bin/bash set -e git commit -a -m $(hostname) >git_ci.out ||true cat git_ci.out if grep "git push" git_ci.out then git push origin $(git rev-parse --abbrev-ref HEAD) fi rm git_ci.out