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