diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2016-12-09 21:57:30 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-12-10 22:54:11 +0100 |
commit | e8e71d0ca7bde44412858cc98314ddc7de8a8a05 (patch) | |
tree | 5066626b129585fa6add58d073d6af1b835eef1e | |
parent | media-libs/opencv: [QA] Minor fixes (diff) | |
download | gentoo-e8e71d0ca7bde44412858cc98314ddc7de8a8a05.tar.gz gentoo-e8e71d0ca7bde44412858cc98314ddc7de8a8a05.tar.bz2 gentoo-e8e71d0ca7bde44412858cc98314ddc7de8a8a05.zip |
www-misc/shellinabox: reduce scope of a couple of variables in init script.
Package-Manager: portage-2.3.0
-rw-r--r-- | www-misc/shellinabox/files/shellinaboxd.init | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/www-misc/shellinabox/files/shellinaboxd.init b/www-misc/shellinabox/files/shellinaboxd.init index 6c0ee48350c2..1e79fbf4dfd2 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}" |