syncthing-monitor/integration-test/test_file_sync.sh
2021-01-31 13:54:58 +02:00

10 lines
216 B
Bash

TEST_TEXT="test string"
echo "${TEST_TEXT}" > /data1/testfile
# shellcheck disable=SC2034
for i in $(seq 1 30); do
[ "${TEST_TEXT}" == "$(cat /data2/testfile)" ] && s=0 && break || s=$? && sleep 2
done
(exit $s)