www-misc/shellinabox: reduce scope of a couple of variables in init script.
authorPatrice Clement <monsieurp@gentoo.org>
Fri, 9 Dec 2016 20:57:30 +0000 (21:57 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Sat, 10 Dec 2016 21:54:11 +0000 (22:54 +0100)
Package-Manager: portage-2.3.0

www-misc/shellinabox/files/shellinaboxd.init

index 6c0ee48350c2cffdf738c8874701efe2f1228d9b..1e79fbf4dfd2284216a5787ba09150aa33eb059e 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -21,6 +21,9 @@ start_pre() {
         local CSS_FILES=( "${SIAB_CSS_DIR}"/*.css )
         local SIAB_CSS_FILES=()
 
+        # Try to keep environment pollution low.
+        local _CSS _BASE _NAME
+
         for _CSS in "${CSS_FILES[@]}"; do
             _BASE="$(basename ${_CSS})"
             _NAME="${_BASE%%\.css}"