Skip to content

Commit b1ba28e

Browse files
authored
bug(classic misdirection) (#852)
1 parent cb54e8c commit b1ba28e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fil-proofs-tooling/scripts/retry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ for attempt in `seq 1 $attempts`; do
3737

3838
sleep_seconds=$(echo "scale=2; ${sleep_ms}/1000" | bc)
3939

40-
echo >&2 "sleeping ${sleep_seconds}s and then retrying ($((attempt + 1))/${attempts})"
40+
(>&2 echo "sleeping ${sleep_seconds}s and then retrying ($((attempt + 1))/${attempts})")
4141

4242
sleep "${sleep_seconds}"
4343
done

fil-proofs-tooling/scripts/with-lock.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ shift 2
88

99
if mkdir "$lockdir" > /dev/null 2>&1
1010
then
11-
echo >&2 "successfully acquired lock (${lockdir})"
11+
(>&2 echo "successfully acquired lock (${lockdir})")
1212

1313
# Unlock (by removing dir) when the script finishes
14-
trap 'echo >&2 "relinquishing lock (${lockdir})"; rm -rf "$lockdir"' EXIT
14+
trap '(>&2 echo "relinquishing lock (${lockdir})"); rm -rf "$lockdir"' EXIT
1515

1616
# Execute command
1717
"$@"
1818
else
19-
echo >&2 "failed to acquire lock (${lockdir})"
19+
(>&2 echo "failed to acquire lock (${lockdir})")
2020
exit $failure_code
2121
fi

0 commit comments

Comments
 (0)