Rename variable

This commit is contained in:
deajan 2020-11-15 22:07:17 +01:00
parent e5922f04a5
commit 9a8b028c96
1 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance
AUTHOR="(C) 2013-2020 by Orsiris de Jong" AUTHOR="(C) 2013-2020 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
PROGRAM_VERSION=1.3.0-rc1 PROGRAM_VERSION=1.3.0-rc1
PROGRAM_BUILD=2020072201 PROGRAM_BUILD=2020111501
IS_STABLE=false IS_STABLE=false
CONFIG_FILE_REVISION_REQUIRED=1.3.0 CONFIG_FILE_REVISION_REQUIRED=1.3.0
@ -512,13 +512,13 @@ function _HandleLocksRemote {
CheckConnectivity3rdPartyHosts CheckConnectivity3rdPartyHosts
CheckConnectivityRemoteHost CheckConnectivityRemoteHost
# Check if -A exists on target # Check if -A exists on target
ps -A > /dev/null 2>&1 ps -A > /dev/null 2>&1
notExistaCapitalA=$? psNotExistsOptA=$?
# Create an array of all currently running pids # Create an array of all currently running pids
if [ "$notExistaCapitalA" == "0" ]; then if [ "$psNotExistaOptA" == "0" ]; then
read -a initiatorRunningPids <<< $(ps -A | tail -n +2 | awk '{print $1}') read -a initiatorRunningPids <<< $(ps -A | tail -n +2 | awk '{print $1}')
else else
read -a initiatorRunningPids <<< $(ps -e | tail -n +2 | awk '{print $1}') read -a initiatorRunningPids <<< $(ps -e | tail -n +2 | awk '{print $1}')