Projet

Général

Profil

Révision fe8908c3

IDfe8908c3260995330283293c620f8c5d8cf1683b
Parent 99e235ce
Enfant 289b99d4

Ajouté par K.Cima il y a presque 9 ans

Fix to add double quote to supress shellcheck warnings

Voir les différences:

plugins/oracle/oracle_sysstat_
78 78
#%# capabilities=autoconf suggest
79 79

  
80 80
# Include plugin.sh
81
. $MUNIN_LIBDIR/plugins/plugin.sh
81
. "${MUNIN_LIBDIR}/plugins/plugin.sh"
82 82

  
83 83
# Like perl 'use strict;' 
84 84
#set -o nounset
85 85

  
86 86
# Environments
87
: ${ORACLE_HOME:=$( echo /opt/oracle/product/* )}
88
: ${ORACLE_SID:=orcl}
89
: ${oracle_auth:=/ as SYSDBA}
87
: "${ORACLE_HOME:=$( echo /opt/oracle/product/* )}"
88
: "${ORACLE_SID:=orcl}"
89
: "${oracle_auth:=/ as SYSDBA}"
90 90

  
91 91
PATH=$PATH:$ORACLE_HOME/bin
92 92
export PATH ORACLE_HOME ORACLE_SID
93 93

  
94 94
# Module name
95
module=$( basename $0 | sed -e 's/^.*_//' )
95
module=$( basename "$0" | sed -e 's/^.*_//' )
96 96

  
97 97
# Graph settings
98 98
declare -A global_attrs  # required
......
476 476
# functions 
477 477

  
478 478
autoconf() {
479
    if [ -x "$( which ${sqlplus} )" ]; then
479
    if [ -x "$( which "${sqlplus}" )" ]; then
480 480
        echo yes
481 481
    else
482 482
        echo "no (failed to find executable 'sqlplus')"
......
484 484
}
485 485

  
486 486
suggest() {
487
    echo ${!global_attrs[@]} | tr ' ' '\n' | sort
487
    echo "${!global_attrs[@]}" | tr ' ' '\n' | sort
488 488
}
489 489

  
490 490
config() {
......
503 503
        draw="${t[2]}"
504 504
        label="${t[3]}"
505 505

  
506
        echo ${field}.type  ${type}
507
        echo ${field}.draw  ${draw}
508
        echo ${field}.label ${label}
506
        echo "${field}.type"  "$type"
507
        echo "${field}.draw"  "$draw"
508
        echo "${field}.label" "$label"
509 509
    done <<< "${data_attrs[$module]}"
510 510

  
511
    echo graph_order ${fields[@]}
511
    echo graph_order "${fields[@]}"
512 512
}
513 513

  
514 514
getfield() {

Formats disponibles : Unified diff