From 0e049c485047ad4a294b8542344db81d88e85b0f Mon Sep 17 00:00:00 2001 From: deajan Date: Sun, 23 Oct 2016 10:44:27 +0200 Subject: [PATCH] More busybox love --- dev/ofunctions.sh | 2 ++ 1 file changed, 2 insertions(+) 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