Skip to content

Commit

Permalink
chore: bump scarb version to 2.3.1 (#134)
Browse files Browse the repository at this point in the history
* chore: bump scarb version

* ci/cd: `-f` force flag for verifier script
  • Loading branch information
julio4 authored Dec 2, 2023
1 parent 932307f commit 92c8301
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
scarb 2.3.0
scarb 2.3.1
17 changes: 16 additions & 1 deletion scripts/cairo_programs_verifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ list_modified_listings() {
cut -d '/' -f 2-3 | sort -u
}

list_all_listings() {
ls -d listings/ch*/* | grep -E 'listings/ch.*/*' | cut -d '/' -f 2-3
}

# function to process listing
process_listing() {
echo "Processing listing '$listing'"
Expand Down Expand Up @@ -65,9 +69,20 @@ process_listing() {
fi
}

# is there the -f flag?
force=false
if [ "$1" == "-f" ]; then
force=true
fi

# process each modified file
pids=()
modified_listings=$(list_modified_listings)

if [ "$force" = true ]; then
modified_listings=$(list_all_listings)
else
modified_listings=$(list_modified_listings)
fi
for listing in $modified_listings; do
process_listing "$listing"
done
Expand Down

0 comments on commit 92c8301

Please sign in to comment.