summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-10-03 12:19:33 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-10-03 13:01:30 -0400
commitb9f7d98bdba983dc6a6ce92948e44913dbd87c53 (patch)
tree888b35ab00dd91a23f022c9b1c0a896a2770ba45 /src
parent3edf6579f6e1874b46afacd9ce5dac7a38349171 (diff)
librerelease: Change how the HOOKs are displayed
This will display the evaluated command line, rather than the cryptic ssh -fN ${REPODEST_port:+-p "$REPODEST_port"} "${REPODEST_userhost}"
Diffstat (limited to 'src')
-rwxr-xr-xsrc/abslibre-tools/librerelease12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease
index 5e162ca..e9a2913 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -243,8 +243,10 @@ clean() {
release_packages() {
if [[ -n $HOOKPRERELEASE ]]; then
msg "Running HOOKPRERELEASE..."
- plain '%s' "$HOOKPRERELEASE"
- (eval -- "$HOOKPRERELEASE")
+ (
+ PS4=" \\[$BOLD\\]\$\\[$ALL_OFF\\] "
+ eval -- "set -x; $HOOKPRERELEASE"
+ )
fi
lock 8 "${WORKDIR}/staging.lock" \
@@ -288,8 +290,10 @@ release_packages() {
if [[ -n $HOOKPOSTRELEASE ]]; then
msg "Running HOOKPOSTRELEASE..."
- plain '%s' "$HOOKPOSTRELEASE"
- (eval -- "$HOOKPOSTRELEASE")
+ (
+ PS4=" \\[$BOLD\\]\$\\[$ALL_OFF\\] "
+ eval -- "set -x; $HOOKPOSTRELEASE"
+ )
fi
return $EXIT_SUCCESS