diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-08 14:53:24 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-08 14:53:24 -0600 |
commit | 7495530c925125f4396fcc06f40881440676835f (patch) | |
tree | 32a80ad52c58a7428701f3057926842f0a648e39 | |
parent | f606fb38d6543b2069b7929713933b97c498c7ce (diff) |
librerelease: print a message before running HOOK{PRE,POST}RELEASE
-rwxr-xr-x | src/abslibre-tools/librerelease | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index 59983d2..fab7c52 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -161,7 +161,10 @@ function main { } function release_packages { - [[ ! -z ${HOOKPRERELEASE} ]] && bash -c "${HOOKPRERELEASE}" + if [[ -n $HOOKPRERELEASE ]]; then + msg "Running HOOKPRERELEASE..." + bash -c "${HOOKPRERELEASE}" + fi clean_non_packages sign_packages @@ -197,7 +200,10 @@ function release_packages { msg "Running db-update on repos" ssh ${REPODEST%%:*} dbscripts/db-update - [[ ! -z ${HOOKPOSTRELEASE} ]] && bash -c "${HOOKPOSTRELEASE}" + if [[ -n $HOOKPOSTRELEASE ]]; then + msg "Running HOOKPOSTRELEASE..." + bash -c "${HOOKPOSTRELEASE}" + fi return 0 } |