summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-09-10 10:34:51 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-09-10 10:34:51 -0500
commitc768a36e484b917187b88069eb530c240b87083c (patch)
treec1677bdcb23b6ea3aa81e3108520f8e2131c9942 /pm
parent6ab65e737b0d70c97cabb4cd795909115cbd7591 (diff)
Fix logging bug that was aborting help after the first hook.
Diffstat (limited to 'pm')
-rw-r--r--pm/pm-functions.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index ce79619..f7492a0 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -84,7 +84,7 @@ fi
# We do it this way because 'echo -n' is not posix.
log()
{
- [ $LOGGING ] || return;
+ [ $LOGGING ] || return 0;
local fmt='%s\n'
[ "$1" = "-n" ] && { fmt='%s'; shift; }
printf "$fmt" "$*"