Skip to content

Commit 39fdaaf

Browse files
committed
fix: return error code if script ran failed
1 parent 77b0752 commit 39fdaaf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ start_time=$(date +%s)
197197

198198
${op_command} forge script --offline ${verify_arg} ${@} -g 200 --sig 'run(bytes,string)' $(cast calldata 'run()') "${extra_argument}"
199199

200+
if [ $? -ne 0 ]; then
201+
exit 1
202+
fi
203+
200204
end_time=$(date +%s)
201205

202206
echo "Execution time: $((end_time - start_time))s"

0 commit comments

Comments
 (0)