diff options
author | jlam <jlam@pkgsrc.org> | 2001-11-06 23:12:00 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-11-06 23:12:00 +0000 |
commit | c91b8b7863360966d3916d283c3e5189fc3b243f (patch) | |
tree | e07160406544987f74fc5b50d2332637acf92358 /www/surfraw | |
parent | d83f31bd7770633b48684fb21b34714c3cb78204 (diff) | |
download | pkgsrc-c91b8b7863360966d3916d283c3e5189fc3b243f.tar.gz |
Deal with scope issues: you can't modify a variable defined outside of a
subshell. In this case, the subshell is implicit due to the pipeline.
Diffstat (limited to 'www/surfraw')
-rw-r--r-- | www/surfraw/DEINSTALL | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/www/surfraw/DEINSTALL b/www/surfraw/DEINSTALL index 33d0367f43e..bb4a088a979 100644 --- a/www/surfraw/DEINSTALL +++ b/www/surfraw/DEINSTALL @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: DEINSTALL,v 1.3 2001/11/06 22:50:13 jlam Exp $ +# $NetBSD: DEINSTALL,v 1.4 2001/11/06 23:12:00 jlam Exp $ PKGNAME=$1 STAGE=$2 @@ -37,14 +37,16 @@ DEINSTALL) ;; POST-DEINSTALL) - modified_files='' - ${ECHO} ${CONFFILES} | ${TR} ":" "\012" | while read SAMPLEFILE FILE - do - if [ -f ${FILE} ] - then - modified_files="${modified_files} ${FILE}" - fi - done + modified_files=` \ + ${ECHO} ${CONFFILES} | ${TR} ":" "\012" | \ + while read SAMPLEFILE FILE; \ + do \ + if [ -f ${FILE} ]; \ + then \ + ${ECHO} ${FILE}; \ + fi; \ + done; \ + ` existing_dirs='' for dir in __dummy ${MAKEDIRS} |