diff options
author | Aaron Ball <nullspoon@oper.io> | 2020-11-28 23:09:27 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2020-11-28 23:09:27 -0700 |
commit | 486e28d724e32a1b55a181cddc827855026f8b93 (patch) | |
tree | 9041b319696fcc527a1e5af27dd4534a015b243a /hooks | |
parent | b5daf1af5672150c7a77787abbd67494b59e92de (diff) | |
download | oper.io-486e28d724e32a1b55a181cddc827855026f8b93.tar.gz oper.io-486e28d724e32a1b55a181cddc827855026f8b93.tar.xz |
post-receive: update log function calls
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/post-receive | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hooks/post-receive b/hooks/post-receive index e30e70f..78c0bd4 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -5,7 +5,7 @@ recompile=0 # Deploy any pages that were changed for i in ${FILES_E[*]} ${FILES_A[*]} ${FILES_M[*]}; do - log "Processing and installing ${i}" + _log "Processing and installing ${i}" if [ "${i##*.}" = 'adoc' ]; then dest="${_web}/html/$(basename ${i%.*}).html" @@ -36,10 +36,10 @@ for i in ${FILES_D[*]}; do out="${_web}/html/$(basename ${i%.*}).html" if [ -e "${_web}/${i}" ]; then - log "Deleting file ${i}" + _log "Deleting file ${i}" rm -f "${_web}/${i}" elif [ -e "${out}" ]; then - log "Deleting post ${out}" + _log "Deleting post ${out}" rm -f "${out}" fi done |