aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-01-08 11:37:20 +0800
committerbdrewery <bdrewery@FreeBSD.org>2015-01-08 11:37:20 +0800
commit84b139fcaddaa6075cd8d0c557258eea365aadbc (patch)
treef293ea99081e49ec36196dccde79ee18e4d1b4c9 /Mk
parente0f611f772dcb009b8509b62831175eb2949f923 (diff)
downloadfreebsd-ports-gnome-84b139fcaddaa6075cd8d0c557258eea365aadbc.tar.gz
freebsd-ports-gnome-84b139fcaddaa6075cd8d0c557258eea365aadbc.tar.zst
freebsd-ports-gnome-84b139fcaddaa6075cd8d0c557258eea365aadbc.zip
Limit the scope of variables in parse_plist()
With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/check-stagedir.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/Scripts/check-stagedir.sh b/Mk/Scripts/check-stagedir.sh
index 7a250e59de2a..eeb133a10084 100644
--- a/Mk/Scripts/check-stagedir.sh
+++ b/Mk/Scripts/check-stagedir.sh
@@ -18,6 +18,8 @@ export LC_ALL=C
# Use file descriptors 1 and 3 so that the while loop can write
# files to the pipe and dirs to a separate file.
parse_plist() {
+ local cwd cwd_save commented_cwd comment line newcwd
+
echo "===> Parsing plist"
cwd=${PREFIX}
cwd_save=