[Pm-utils] [PATCH 06/12] Moved the "Running hook" diagnostic message in run_hooks.

Victor Lowther victor.lowther at gmail.com
Tue Mar 11 18:08:41 PDT 2008


---
 pm/pm-functions.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index cd666b0..6d2ca2b 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -120,9 +120,10 @@ run_hooks() {
 		elif [ -f "$phooks/$base" ]; then
 			hook="$phooks/$base"
 		fi
+		
+		echo $(date): running ${hook} $2
 		hook_ok "$hook" && (
 			IFS="${oifs}"
-			echo "$(date): running ${hook} $2"
 			"${hook}" $2
 		)
 		hook_exit_status $?
-- 
1.5.4.3



More information about the Pm-utils mailing list