File tree Expand file tree Collapse file tree
destination-surrealdb/.devcontainer/surrealdb Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,9 +44,15 @@ elif [ "$VERSION" = "latest" ]; then
4444 # For latest, don't pass any version flags - let the script use the default
4545 INSTALL_ARGS=" "
4646else
47- # For specific versions, remove the "v" prefix if present and pass --version flag
48- VERSION_CLEAN=" ${VERSION# v} "
49- INSTALL_ARGS=" --version $VERSION_CLEAN "
47+ # For specific versions, ensure the "v" prefix is present
48+ if [[ " $VERSION " == v* ]]; then
49+ # Already has "v" prefix
50+ VERSION_WITH_V=" $VERSION "
51+ else
52+ # Add "v" prefix
53+ VERSION_WITH_V=" v$VERSION "
54+ fi
55+ INSTALL_ARGS=" --version $VERSION_WITH_V "
5056fi
5157
5258curl -sSf https://install.surrealdb.com | sh -s -- $INSTALL_ARGS
Original file line number Diff line number Diff line change @@ -44,9 +44,15 @@ elif [ "$VERSION" = "latest" ]; then
4444 # For latest, don't pass any version flags - let the script use the default
4545 INSTALL_ARGS=" "
4646else
47- # For specific versions, remove the "v" prefix if present and pass --version flag
48- VERSION_CLEAN=" ${VERSION# v} "
49- INSTALL_ARGS=" --version $VERSION_CLEAN "
47+ # For specific versions, ensure the "v" prefix is present
48+ if [[ " $VERSION " == v* ]]; then
49+ # Already has "v" prefix
50+ VERSION_WITH_V=" $VERSION "
51+ else
52+ # Add "v" prefix
53+ VERSION_WITH_V=" v$VERSION "
54+ fi
55+ INSTALL_ARGS=" --version $VERSION_WITH_V "
5056fi
5157
5258curl -sSf https://install.surrealdb.com | sh -s -- $INSTALL_ARGS
You can’t perform that action at this time.
0 commit comments