10 lines
216 B
Bash
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)
|