File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
fil-proofs-tooling/scripts Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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} "
4343done
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ shift 2
88
99if mkdir " $lockdir " > /dev/null 2>&1
1010then
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 " $@ "
1818else
19- echo >&2 " failed to acquire lock (${lockdir} )"
19+ ( >&2 echo " failed to acquire lock (${lockdir} )" )
2020 exit $failure_code
2121fi
You can’t perform that action at this time.
0 commit comments