- improved error message when gawk is not installed
This commit is contained in:
parent
572292fa02
commit
4582df1102
3
intr_
3
intr_
@ -39,8 +39,7 @@
|
||||
SCRIPT_NAME=$(basename $0)
|
||||
STAT_TYPE=`echo $SCRIPT_NAME | sed -n s/intr_//p`
|
||||
VMSTAT="/usr/bin/vmstat"
|
||||
AWK=`which gawk` || exit 1
|
||||
|
||||
AWK=`which gawk` || ( echo "gawk not found"; exit 1 )
|
||||
|
||||
STATFILE=`mktemp -t intr`
|
||||
${VMSTAT} -i | sort -V > ${STATFILE} 2>/dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user