diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 6c3e393..0f5eb19 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -1019,6 +1019,7 @@ function GetLocalOS { function GetRemoteOS { __CheckArguments 0 $# ${FUNCNAME[0]} "$@" #__WITH_PARANOIA_DEBUG + local retval local cmd local remoteOsVar @@ -1030,6 +1031,7 @@ function GetRemoteOS { Logger "cmd: $cmd" "DEBUG" eval "$cmd" & WaitForTaskCompletion $! 120 240 ${FUNCNAME[0]}"-0" true $KEEP_LOGGING + retval=$? if [ $retval == 0 ]; then remoteOsVar="BusyBox" else