From 7fd5b59ae0419365614953f6961c7d8c7366f7b1 Mon Sep 17 00:00:00 2001 From: q3aql Date: Mon, 29 Mar 2021 18:26:37 +0200 Subject: [PATCH] Set retries of send & checksum in 3 (ks-upv/upa/upf) --- src/ks-upa | 4 ++-- src/ks-upf | 4 ++-- src/ks-upv | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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