Skip to content

Commit a5744fc

Browse files
committed
Add basic logging
1 parent 0497dbd commit a5744fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

hooks/update.sh

+10
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,14 @@ refname="$1"
77
oldrev="$2"
88
newrev="$3"
99

10+
function log() {
11+
echo -e "[$$: $(date "+%Y-%m-%d %H:%M:%S %Z")] $1"
12+
}
13+
14+
log "### start ###"
15+
log "args: $*"
16+
17+
log "==> git push github"
1018
git push github "$newrev:$refname"
19+
20+
log "### end ###\n"

0 commit comments

Comments
 (0)