Skip to content

Commit ca8a2c5

Browse files
committed
wip
1 parent 32b5433 commit ca8a2c5

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

eng/scripts/get-aspire-cli.sh

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ readonly YELLOW='\033[1;33m'
1616
readonly RESET='\033[0m'
1717

1818
# Variables (defaults set after parsing arguments)
19-
INSTALL_PREFIX=""
2019
INSTALL_PATH=""
2120
VERSION=""
2221
QUALITY=""
@@ -48,8 +47,7 @@ DESCRIPTION:
4847
USAGE:
4948
./get-aspire-cli.sh [OPTIONS]
5049
51-
-i, --install-path PATH Directory prefix to install (default: $HOME/.aspire)
52-
CLI will be installed to PATH/bin
50+
-i, --install-path PATH Directory to install the CLI (default: $HOME/.aspire/bin)
5351
-q, --quality QUALITY Quality to download (default: ${DEFAULT_QUALITY}). Supported values: dev, staging, release
5452
--version VERSION Version of the Aspire CLI to download (default: unset)
5553
--os OS Operating system (default: auto-detect)
@@ -86,7 +84,7 @@ parse_args() {
8684
say_info "Use --help for usage information."
8785
exit 1
8886
fi
89-
INSTALL_PREFIX="$2"
87+
INSTALL_PATH="$2"
9088
shift 2
9189
;;
9290
--version)
@@ -744,18 +742,14 @@ if [[ -z "$QUALITY" ]]; then
744742
QUALITY="${DEFAULT_QUALITY}"
745743
fi
746744

747-
# Set default install prefix if not provided
748-
if [[ -z "$INSTALL_PREFIX" ]]; then
749-
INSTALL_PREFIX="$HOME/.aspire"
750-
INSTALL_PREFIX_UNEXPANDED="\$HOME/.aspire"
745+
# Set default install path if not provided
746+
if [[ -z "$INSTALL_PATH" ]]; then
747+
INSTALL_PATH="$HOME/.aspire/bin"
748+
INSTALL_PATH_UNEXPANDED="\$HOME/.aspire/bin"
751749
else
752-
INSTALL_PREFIX_UNEXPANDED="$INSTALL_PREFIX"
750+
INSTALL_PATH_UNEXPANDED="$INSTALL_PATH"
753751
fi
754752

755-
# Set paths based on install prefix
756-
INSTALL_PATH="$INSTALL_PREFIX/bin"
757-
INSTALL_PATH_UNEXPANDED="$INSTALL_PREFIX_UNEXPANDED/bin"
758-
759753
# Create a temporary directory for downloads
760754
if [[ "$DRY_RUN" == true ]]; then
761755
temp_dir="/tmp/aspire-cli-dry-run"

0 commit comments

Comments
 (0)