Skip to content

Commit 4244dc7

Browse files
committed
fix: yolo installer fix
1 parent 10bc5fa commit 4244dc7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

aztec-up/bin/aztec-install

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,13 @@ function install_jq {
131131
}
132132

133133
function install_aztec_up {
134-
# Download aztec-up from root (the canonical latest version).
135-
# aztec-up is a version manager, so it's not version-specific.
136-
curl -fsSL "$INSTALL_URI/aztec-up" -o "$shared_bin_path/aztec-up"
134+
if [ -n "$VERSION" ]; then
135+
# Download aztec-up from version dir (useful for testing).
136+
curl -fsSL "$INSTALL_URI/$VERSION/aztec-up" -o "$shared_bin_path/aztec-up"
137+
else
138+
# Download aztec-up from root (the canonical latest version).
139+
curl -fsSL "$INSTALL_URI/aztec-up" -o "$shared_bin_path/aztec-up"
140+
fi
137141
chmod +x "$shared_bin_path/aztec-up"
138142
}
139143

0 commit comments

Comments
 (0)