diff --git a/src/ks-upa b/src/ks-upa index 7a9017d..2705c54 100755 --- a/src/ks-upa +++ b/src/ks-upa @@ -151,7 +151,7 @@ function sendFile() { sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null sleep 5 countSend=$(expr ${countSend} + 1) - if [ ${countSend} -eq 5 ] ; then + if [ ${countSend} -eq 3 ] ; then correct=1 fi else @@ -181,7 +181,7 @@ function checkChecksum() { echo "Retrying..." sleep 5 countChecksum=$(expr ${countChecksum} + 1) - if [ ${countChecksum} -eq 5 ] ; then + if [ ${countChecksum} -eq 3 ] ; then correct=1 fi else diff --git a/src/ks-upf b/src/ks-upf index c501f65..5916d02 100755 --- a/src/ks-upf +++ b/src/ks-upf @@ -169,7 +169,7 @@ function sendFile() { sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null sleep 5 countSend=$(expr ${countSend} + 1) - if [ ${countSend} -eq 5 ] ; then + if [ ${countSend} -eq 3 ] ; then correct=1 fi else @@ -199,7 +199,7 @@ function checkChecksum() { echo "Retrying..." sleep 5 countChecksum=$(expr ${countChecksum} + 1) - if [ ${countChecksum} -eq 5 ] ; then + if [ ${countChecksum} -eq 3 ] ; then correct=1 fi else diff --git a/src/ks-upv b/src/ks-upv index 8a8901d..759e58b 100755 --- a/src/ks-upv +++ b/src/ks-upv @@ -151,7 +151,7 @@ function sendFile() { sshpass -p ${1} ssh ${3}@${4} rm -rf ${5}/.${6}.* &> /dev/null sleep 5 countSend=$(expr ${countSend} + 1) - if [ ${countSend} -eq 5 ] ; then + if [ ${countSend} -eq 3 ] ; then correct=1 fi else @@ -181,7 +181,7 @@ function checkChecksum() { echo "Retrying..." sleep 5 countChecksum=$(expr ${countChecksum} + 1) - if [ ${countChecksum} -eq 5 ] ; then + if [ ${countChecksum} -eq 3 ] ; then correct=1 fi else