public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: www-misc/shellinabox/files/
@ 2016-12-10 21:55 Patrice Clement
  0 siblings, 0 replies; only message in thread
From: Patrice Clement @ 2016-12-10 21:55 UTC (permalink / raw
  To: gentoo-commits

commit:     e8e71d0ca7bde44412858cc98314ddc7de8a8a05
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  9 20:57:30 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sat Dec 10 21:54:11 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8e71d0c

www-misc/shellinabox: reduce scope of a couple of variables in init script.

Package-Manager: portage-2.3.0

 www-misc/shellinabox/files/shellinaboxd.init | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www-misc/shellinabox/files/shellinaboxd.init b/www-misc/shellinabox/files/shellinaboxd.init
index 6c0ee48..1e79fbf 100644
--- a/www-misc/shellinabox/files/shellinaboxd.init
+++ b/www-misc/shellinabox/files/shellinaboxd.init
@@ -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}"


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-10 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-10 21:55 [gentoo-commits] repo/gentoo:master commit in: www-misc/shellinabox/files/ Patrice Clement

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox