Skip to content

Commit

Permalink
Remove common preffix
Browse files Browse the repository at this point in the history
  • Loading branch information
H00N24 committed Jan 8, 2025
1 parent 898f768 commit 3e2a473
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/run-certora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ current_dir="$(pwd)"

for conf_line in "${confs[@]}"; do

if [[ ${#conf_line} -gt $MAX_MSG_LEN ]]; then
MSG_CONF="${conf_line: -$REMAINING_LEN}"
short_conf_line="${conf_line#"$common_prefix"}"
if [[ ${#short_conf_line} -gt $MAX_MSG_LEN ]]; then
MSG_CONF="${short_conf_line: -$REMAINING_LEN}"
else
MSG_CONF="$conf_line"
MSG_CONF="$short_conf_line"
fi

conf_parts=()
Expand Down

0 comments on commit 3e2a473

Please sign in to comment.