summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcopyPhotos9
1 files changed, 8 insertions, 1 deletions
diff --git a/copyPhotos b/copyPhotos
index c085ba6..981cf4c 100755
--- a/copyPhotos
+++ b/copyPhotos
@@ -132,6 +132,7 @@ then
ssh "${endHost}" 'sha512sum -c'
fi
+erg=${pingErg}
pingErg=0
if ${stefanie}
@@ -154,6 +155,9 @@ then
ssh "${zweitHost}" 'sha512sum -c'
fi
+if [ ${pingErg} -gt ${erg} ]; then
+ erg=${pingErg}
+fi
pingErg=0
if ${backup}
@@ -176,6 +180,9 @@ then
ssh "${drittHost}" 'sha512sum -c'
fi
+if [ ${pingErg} -gt ${erg} ]; then
+ erg=${pingErg}
+fi
while true
do
@@ -245,7 +252,7 @@ do
esac
done
-if [ ${pingErg} -eq 0 ]
+if [ ${erg} -eq 0 ]
then
echo "${summen}" | \
sed 's|^[0-9a-f]\+ \+||' | \