Skip to content

Commit

Permalink
fix: return error code if script ran failed
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Sep 12, 2024
1 parent 77b0752 commit 39fdaaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ start_time=$(date +%s)

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

if [ $? -ne 0 ]; then
exit 1
fi

end_time=$(date +%s)

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

0 comments on commit 39fdaaf

Please sign in to comment.