2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Fix to add double quote to supress shellcheck warnings

This commit is contained in:
K.Cima 2016-11-28 23:53:47 +09:00
parent 99e235ceef
commit fe8908c326

View File

@ -78,21 +78,21 @@
#%# capabilities=autoconf suggest
# Include plugin.sh
. $MUNIN_LIBDIR/plugins/plugin.sh
. "${MUNIN_LIBDIR}/plugins/plugin.sh"
# Like perl 'use strict;'
#set -o nounset
# Environments
: ${ORACLE_HOME:=$( echo /opt/oracle/product/* )}
: ${ORACLE_SID:=orcl}
: ${oracle_auth:=/ as SYSDBA}
: "${ORACLE_HOME:=$( echo /opt/oracle/product/* )}"
: "${ORACLE_SID:=orcl}"
: "${oracle_auth:=/ as SYSDBA}"
PATH=$PATH:$ORACLE_HOME/bin
export PATH ORACLE_HOME ORACLE_SID
# Module name
module=$( basename $0 | sed -e 's/^.*_//' )
module=$( basename "$0" | sed -e 's/^.*_//' )
# Graph settings
declare -A global_attrs # required
@ -476,7 +476,7 @@ sqlplus_variables="
# functions
autoconf() {
if [ -x "$( which ${sqlplus} )" ]; then
if [ -x "$( which "${sqlplus}" )" ]; then
echo yes
else
echo "no (failed to find executable 'sqlplus')"
@ -484,7 +484,7 @@ autoconf() {
}
suggest() {
echo ${!global_attrs[@]} | tr ' ' '\n' | sort
echo "${!global_attrs[@]}" | tr ' ' '\n' | sort
}
config() {
@ -503,12 +503,12 @@ config() {
draw="${t[2]}"
label="${t[3]}"
echo ${field}.type ${type}
echo ${field}.draw ${draw}
echo ${field}.label ${label}
echo "${field}.type" "$type"
echo "${field}.draw" "$draw"
echo "${field}.label" "$label"
done <<< "${data_attrs[$module]}"
echo graph_order ${fields[@]}
echo graph_order "${fields[@]}"
}
getfield() {