summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-08 14:53:24 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-08 14:53:24 -0600
commit7495530c925125f4396fcc06f40881440676835f (patch)
tree32a80ad52c58a7428701f3057926842f0a648e39
parentf606fb38d6543b2069b7929713933b97c498c7ce (diff)
librerelease: print a message before running HOOK{PRE,POST}RELEASE
-rwxr-xr-xsrc/abslibre-tools/librerelease10
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
}