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

fix isInteractiveShell; less output for service

parent 9907f6f4
No related branches found
No related tags found
1 merge request!6fix isInteractiveShell; less output for service
......@@ -172,7 +172,6 @@ function processAllChecks(){
_log ""
_log "------ looping over all checks"
getChecks
for myconfig in $(getChecks)
do
iCounter=$iCounter+1
......
......@@ -6,7 +6,7 @@
# ======================================================================
isInteractiveShell=false
test -n "$PS1" && isInteractiveShell=true
test $PPID -ne 1 && isInteractiveShell=true
# ..................................................................
# write debug output to STDERR
......@@ -248,12 +248,12 @@ function _getIpPrivate(){
http.makeRequest "$1" "$2" "$3"
if http.isServerError >/dev/null; then
echo "CRITICAL ERROR: API request failed with a server error $1 $2"
_elog "CRITICAL ERROR: API request failed with a server error $1 $2"
exit 1
fi
http.getResponseHeader
http.getResponse
_echo "$( http.getResponseHeader )"
_echo $( http.getResponse )
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment