mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
www-misc/shellinabox: reduce scope of a couple of variables in init script.
Package-Manager: portage-2.3.0
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user