Skip to content

Commit

Permalink
chore: pass runtime version as arg (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
octonato authored Nov 28, 2024
1 parent a0580dd commit 606acff
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions updateRuntimeVersions.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
#!/usr/bin/env bash

# USAGE:
# > ./updateRuntimeVersions.sh 1.0.31
# or
# > RUNTIME_VERSION=1.0.31 ./updateRuntimeVersions.sh

# this script is meant to be used after a new Runtime version is out
# to facilitate the update of all the places where we usually depend on the latest version

# provide the new Runtime version you want the project to be updated to
if [[ -z "$RUNTIME_VERSION" ]]; then
echo "Must provide RUNTIME_VERSION in environment" 1>&2

if [[ $1 ]];then
RUNTIME_VERSION=$1
fi

if [[ -z "$RUNTIME_VERSION" ]]; then
echo "Must provide RUNTIME_VERSION in environment or pass it as an argument" 1>&2
exit 1
fi

Expand Down

0 comments on commit 606acff

Please sign in to comment.