File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Define version mapping
4+ declare -A VERSION_MAP
5+ VERSION_MAP[" euclid" ]=" 0.4.3"
6+ VERSION_MAP[" feynman" ]=" 0.5.0rc0"
7+
38# release version
49if [ -z " ${SCROLL_ZKVM_VERSION} " ]; then
5- # before we use version tag for zkvm, we can not acquire the correct version of zkvm from script
6- # SCROLL_ZKVM_VERSION=$($SHELL ./print_high_zkvm_version.sh | cut -d' ' -f1|cut -c2-)
7- SCROLL_ZKVM_VERSION=0.5.0rc0
10+
11+ # Check if first argument is provided and matches a known version name
12+ if [ -n " $1 " ] && [ -n " ${VERSION_MAP[$1]} " ]; then
13+ SCROLL_ZKVM_VERSION=${VERSION_MAP[$1]}
14+ echo " Setting SCROLL_ZKVM_VERSION to ${SCROLL_ZKVM_VERSION} based on '$1 ' argument"
15+ else
16+ # Default version if no argument or not recognized
17+ SCROLL_ZKVM_VERSION=0.5.0rc0
18+ fi
819fi
920
1021echo $SCROLL_ZKVM_VERSION
You can’t perform that action at this time.
0 commit comments