From 325c4e5d5c223e0eef83bfffbd53eedb5a9feca6 Mon Sep 17 00:00:00 2001 From: deajan Date: Sat, 19 Nov 2016 13:13:08 +0100 Subject: [PATCH] GetRemoteOS executed anyway --- dev/ofunctions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 8b8df3c..68aac7c 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -984,6 +984,10 @@ function GetLocalOS { function GetRemoteOS { __CheckArguments 0 $# ${FUNCNAME[0]} "$@" #__WITH_PARANOIA_DEBUG + if [ "$REMOTE_OPERATION" != "yes" ]; then + return 0 + fi + local remoteOsVar $SSH_CMD bash -s << 'ENDSSH' >> "$RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID" 2>&1