[Pm-utils] [PATCH 2/7] Move the actuall hook running into a subshell.
Victor Lowther
victor.lowther at gmail.com
Sat Feb 9 21:24:46 PST 2008
From: Dan Nicholson <dbn.lists at gmail.com>
---
pm/functions.in | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/pm/functions.in b/pm/functions.in
index 996c8dd..2c07a3f 100644
--- a/pm/functions.in
+++ b/pm/functions.in
@@ -128,12 +128,11 @@ run_hooks() {
elif [ -f "$phooks/$base" ]; then
hook="$phooks/$base"
fi
- [ -x "${hook}" ] && {
+ [ -x "${hook}" ] && (
IFS="${oifs}"
echo "$(date): running ${hook} $2"
"${hook}" $2
- IFS="${nifs}"
- }
+ )
done
IFS="${oifs}"
}
--
1.5.3.8
More information about the Pm-utils
mailing list