summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2020-12-02 11:51:16 -0700
committerAaron Ball <nullspoon@oper.io>2020-12-02 11:51:16 -0700
commitc089015851a142c35a874c1c1994616f4132d74b (patch)
tree646e6ab2772504498fa02a25101a2857ba913983
parent5fa3b8d16ab1069508e9b76287c1b809831343bd (diff)
downloadcrux-ports-arm64-c089015851a142c35a874c1c1994616f4132d74b.tar.gz
crux-ports-arm64-c089015851a142c35a874c1c1994616f4132d74b.tar.xz
Improve post-receive messages when nothing happens
-rw-r--r--hooks/post-receive4
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index fbdbf8d..7a95961 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -4,8 +4,8 @@ dest=${WEB}/oper.io.services/crux-ports-arm64
# Copy files from working cache to destination
rsync -av --inplace --exclude hooks --exclude '.git*' ./ ${dest}/ || true
-printf '[git] Updating %s\n' ${FILES_M[@]}
-printf '[git] Removing %s\n' ${FILES_D[@]}
+printf '[git] Updating %s\n' ${FILES_M[@]:-nothing}
+printf '[git] Removing %s\n' ${FILES_D[@]:-nothing}
# Regen repo httpup files
httpup-repgen "${dest}"

Generated by cgit