Skip to content

Commit 03a9107

Browse files
nchamoaztec-bot
authored andcommitted
fix(aztec-up): pass VERSION to per-version installer and fix release sed (#22083)
1 parent a7e8048 commit 03a9107

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

aztec-up/bin/0.0.1/aztec-up

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function cmd_install {
236236
fi
237237

238238
# Download and run the version-specific installer
239-
curl -fsSL "$install_url" | bash
239+
curl -fsSL "$install_url" | VERSION="$resolved_version" bash
240240

241241
# Update the current symlink
242242
ln -sfn "$AZTEC_HOME/versions/$resolved_version" "$AZTEC_HOME/current"

aztec-up/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function release {
141141
# It's a manual process, as updating the root installer and alias index requires careful consideration.
142142
function release_root_installer {
143143
# Upload root installer assets: aztec-install (with VERSION defaulting to latest), aztec-up, and banner files.
144-
sed "s/^VERSION=.*/VERSION=\${VERSION:-latest}/" bin/0.0.1/aztec-install | \
144+
sed "s/^VERSION=\${VERSION:-.*}/VERSION=\${VERSION:-latest}/" bin/0.0.1/aztec-install | \
145145
do_or_dryrun aws s3 cp - "s3://install.aztec.network/aztec-install"
146146
do_or_dryrun aws s3 cp bin/0.0.1/aztec-up "s3://install.aztec.network/aztec-up"
147147
do_or_dryrun aws s3 cp bin/0.0.1/aztec-banner "s3://install.aztec.network/aztec-banner"

0 commit comments

Comments
 (0)