syncthing-monitor/integration-test/test_file_sync.sh

10 lines
216 B
Bash
Raw Normal View History

2021-01-31 08:44:14 +00:00
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)