Skip to content
Snippets Groups Projects

show failed command on abort

Merged Hahn Axel (hahn) requested to merge react-on-pipe-in-output into master
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
+ 2
0
@@ -363,6 +363,7 @@ function processCheck(){
@@ -363,6 +363,7 @@ function processCheck(){
_echo "Pipe chars: $iPipes"
_echo "Pipe chars: $iPipes"
if [[ $iPipes -gt 1 ]]; then
if [[ $iPipes -gt 1 ]]; then
_elog "ABORT - pipes were found in plugin output"
_elog "ABORT - pipes were found in plugin output"
 
_elgo "command was: $myFullscript $myparams"
exit 1
exit 1
fi
fi
@@ -372,6 +373,7 @@ function processCheck(){
@@ -372,6 +373,7 @@ function processCheck(){
# echo
# echo
if ! test -n "$outPerfdata" && echo "$outPerfdata" | grep "=[0-9\.]*;[0-9\.]*;[0-9\.]*;[0-9\.]*;" >/dev/null; then
if ! test -n "$outPerfdata" && echo "$outPerfdata" | grep "=[0-9\.]*;[0-9\.]*;[0-9\.]*;[0-9\.]*;" >/dev/null; then
_elog "ABORT - this does not look like performance data: $outPerfdata"
_elog "ABORT - this does not look like performance data: $outPerfdata"
 
_elgo "command was: $myFullscript $myparams"
exit 1
exit 1
fi
fi
_log "${_logPrefix} check command finished with returncode $rc"
_log "${_logPrefix} check command finished with returncode $rc"
Loading