diff options
author | Aaron Ball <nullspoon@oper.io> | 2020-12-02 11:51:16 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2020-12-02 11:51:16 -0700 |
commit | c089015851a142c35a874c1c1994616f4132d74b (patch) | |
tree | 646e6ab2772504498fa02a25101a2857ba913983 | |
parent | 5fa3b8d16ab1069508e9b76287c1b809831343bd (diff) | |
download | crux-ports-arm64-c089015851a142c35a874c1c1994616f4132d74b.tar.gz crux-ports-arm64-c089015851a142c35a874c1c1994616f4132d74b.tar.xz |
Improve post-receive messages when nothing happens
-rw-r--r-- | hooks/post-receive | 4 |
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}" |