Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions aztec-up/bin/aztec-up
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@ export VERSION=${1:-${VERSION:-}}
export NON_INTERACTIVE=1
INSTALL_URI=${INSTALL_URI:-https://install.aztec.network}

function help() {
echo "Usage: aztec-up [options]"
echo "Options:"
echo " -v, --version <version> Install a specific version of Aztec"
echo " -h, --help Show this help message"
}

# Parse optional version argument
while [[ $# -gt 0 ]]; do
case $1 in
-v|--version)
VERSION="$2"
shift # past argument
shift # past value
;;
-h|--help)
help
exit 0
;;
*)
# Skip unknown options
shift
;;
esac
done

if [ -n "$VERSION" ] && [ "$VERSION" != "latest" ]; then
install_url="$INSTALL_URI/$VERSION/aztec-install"
else
Expand Down