Skip to content
Snippets Groups Projects
Commit fadf44e4 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update quoting in dirname, basename

parent f99e8544
No related branches found
No related tags found
1 merge request!300harden source of files; quote basename and dirname
...@@ -29,7 +29,7 @@ export self_APPVERSION=1.3 ...@@ -29,7 +29,7 @@ export self_APPVERSION=1.3
# show help text # show help text
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -44,7 +44,7 @@ paramsWget="-T 5 -t 1 --no-check-certificate" ...@@ -44,7 +44,7 @@ paramsWget="-T 5 -t 1 --no-check-certificate"
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -35,7 +35,7 @@ typeset -i iCritical=0 ...@@ -35,7 +35,7 @@ typeset -i iCritical=0
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
...@@ -45,7 +45,8 @@ This check sends performance data. ...@@ -45,7 +45,8 @@ This check sends performance data.
It uses 'ceph df' to parse data. It uses 'ceph df' to parse data.
SYNTAX: SYNTAX:
$(basename $0)
$_self
OPTIONS: OPTIONS:
-h or --help show this help. -h or --help show this help.
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
export self_APPVERSION=1.6 export self_APPVERSION=1.6
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -44,7 +44,7 @@ iColUpDown=5 ...@@ -44,7 +44,7 @@ iColUpDown=5
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -47,7 +47,7 @@ line="__________________________________________________________________________ ...@@ -47,7 +47,7 @@ line="__________________________________________________________________________
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -34,7 +34,7 @@ sInstalldir=/opt/imlbackup/client/ ...@@ -34,7 +34,7 @@ sInstalldir=/opt/imlbackup/client/
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -41,7 +41,7 @@ NL=" ...@@ -41,7 +41,7 @@ NL="
# show help # show help
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -48,7 +48,8 @@ On higher cpu usage it can show processes that cause cpu waits and ...@@ -48,7 +48,8 @@ On higher cpu usage it can show processes that cause cpu waits and
with most cpu consumption. with most cpu consumption.
SYNTAX: SYNTAX:
$(basename $0) [-w WARN_LIMIT] [-c CRITICAL_LIMIT] [-i CRITICAL_IO_WAIT] [-p PROCESS_LIMIT]
$_self [-w WARN_LIMIT] [-c CRITICAL_LIMIT] [-i CRITICAL_IO_WAIT] [-p PROCESS_LIMIT]
OPTIONS: OPTIONS:
...@@ -67,7 +68,8 @@ PARAMETERS: ...@@ -67,7 +68,8 @@ PARAMETERS:
None. None.
EXAMPLE: EXAMPLE:
$(basename $0) -w 60 -c 80 -p 40
$_self -w 60 -c 80 -p 40
EOF EOF
} }
......
...@@ -42,7 +42,7 @@ statusScript=/opt/cronwrapper/cronstatus.sh ...@@ -42,7 +42,7 @@ statusScript=/opt/cronwrapper/cronstatus.sh
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
...@@ -55,7 +55,8 @@ The last run of each job is verified to these conditions: ...@@ -55,7 +55,8 @@ The last run of each job is verified to these conditions:
SYNTAX: SYNTAX:
$(basename $0) [-h] [SCRIPT]
$_self [-h] [SCRIPT]
OPTIONS: OPTIONS:
......
...@@ -20,7 +20,7 @@ sInstalldir=/opt/imldeployment-installer ...@@ -20,7 +20,7 @@ sInstalldir=/opt/imldeployment-installer
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -46,7 +46,7 @@ function getDisks(){ ...@@ -46,7 +46,7 @@ function getDisks(){
# show help # show help
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -39,7 +39,7 @@ typeset -i iNotReachable=0 ...@@ -39,7 +39,7 @@ typeset -i iNotReachable=0
# show help # show help
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -34,7 +34,7 @@ self_APPVERSION=1.6 ...@@ -34,7 +34,7 @@ self_APPVERSION=1.6
# show help # show help
function _showHelp(){ function _showHelp(){
local _self=$( basename $0 ) local _self; _self="$( basename "$0" )"
cat <<EOH cat <<EOH
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -32,7 +32,7 @@ typeset -i iSpeedTrans ...@@ -32,7 +32,7 @@ typeset -i iSpeedTrans
# show help # show help
function _showHelp(){ function _showHelp(){
local _self=$( basename $0 ) local _self; _self="$( basename "$0" )"
cat <<EOH cat <<EOH
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -31,7 +31,7 @@ self_APPVERSION=1.2 ...@@ -31,7 +31,7 @@ self_APPVERSION=1.2
# show help # show help
function _showHelp(){ function _showHelp(){
local _self=$( basename $0 ) local _self; _self="$( basename "$0" )"
cat <<EOH cat <<EOH
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -29,7 +29,7 @@ self_APPVERSION=1.1 ...@@ -29,7 +29,7 @@ self_APPVERSION=1.1
# show help # show help
function _usage(){ function _usage(){
local _self=$( basename $0 ) local _self; _self="$( basename "$0" )"
cat <<EOH cat <<EOH
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -30,7 +30,7 @@ self_APPVERSION=1.2 ...@@ -30,7 +30,7 @@ self_APPVERSION=1.2
# show help # show help
function _showHelp(){ function _showHelp(){
local _self=$( basename $0 ) local _self; _self="$( basename "$0" )"
cat <<EOH cat <<EOH
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -142,7 +142,7 @@ function findEolDate(){ ...@@ -142,7 +142,7 @@ function findEolDate(){
} }
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
...@@ -34,7 +34,7 @@ typeset -i iLimitCritical=14 ...@@ -34,7 +34,7 @@ typeset -i iLimitCritical=14
# show help text # show help text
function showHelp(){ function showHelp(){
local _self; _self=$(basename $0) local _self; _self="$( basename "$0" )"
cat <<EOF cat <<EOF
$( ph.showImlHelpHeader ) $( ph.showImlHelpHeader )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment