summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-02-23 00:33:23 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-02-23 00:33:23 -0600
commit9343bda51f8feff514b2bd0430c6435ee7466148 (patch)
tree1c73ef6131b16e25243c99c42ba5faefe25766cf /pm
parent65c84de480fb3565978e8a0778d53023a242ea95 (diff)
parent734f80b6de32c6740fc908f43407e46f36401416 (diff)
Merge branch 'master' into stabilizaton
Diffstat (limited to 'pm')
-rw-r--r--pm/functions.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/pm/functions.in b/pm/functions.in
index 6fb7c94..26f27cf 100644
--- a/pm/functions.in
+++ b/pm/functions.in
@@ -143,8 +143,8 @@ run_hooks() {
"
IFS="${nifs}" # tolerate spaces in filenames.
[ "$3" = "reverse" ] && sort="sort -r"
- for base in $(for f in "$syshooks/"*[!~] "$phooks/"*[!~];
- do [ -O "$f" ] && echo ${f##*/} ; done | sort | uniq) ;
+ for base in $(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~];
+ do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq) ;
do
if [ -f "$syshooks/$base" ]; then
hook="$syshooks/$base"