Skip to content

Commit 20f3236

Browse files
committed
fixing instal script
1 parent 37c1da3 commit 20f3236

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

astra-shell/dist/astra-install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ASTRA_CLI_DIR="$HOME/.astra/cli"
3434

3535
# Local variables
3636
astra_tmp_folder="$HOME/.astra/tmp"
37+
astra_scb_folder="$HOME/.astra/cli/scb"
3738
astra_zip_file="${astra_tmp_folder}/astra-cli-${ASTRA_CLI_VERSION}.zip"
3839
astra_zip_base_folder="${astra_tmp_folder}/astra-cli-${ASTRA_CLI_VERSION}"
3940

@@ -132,6 +133,10 @@ mkdir -p "$astra_tmp_folder"
132133
echo "$(tput setaf 2)[OK]$(tput setaf 7) - Created $astra_tmp_folder"
133134
mkdir -p "$ASTRA_CLI_DIR"
134135
echo "$(tput setaf 2)[OK]$(tput setaf 7) - Created $ASTRA_CLI_DIR"
136+
mkdir -p "$astra_scb_folder"
137+
echo "$(tput setaf 2)[OK]$(tput setaf 7) - Created $astra_scb_folder"
138+
139+
135140
echo ""
136141
echo "Downloading archive:"
137142
download_url="https://github.com/datastaxdevs/datastaxdevs.github.io/raw/master/cli/${ASTRA_CLI_VERSION}.zip"

astra-shell/src/main/java/com/datastax/astra/shell/cmd/config/ConfigSetup.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ public void run() {
5656
ccc.sectionName = new OrganizationsClient(token).organization().getName();
5757
ccc.run();
5858
valid_token = true;
59+
System.out.println("OK");
5960

6061
ConfigGet configs = new ConfigGet();
6162
configs.astraRc = this.astraRc;
6263
configs.configFilename = this.configFilename;
64+
configs.sectionName = ccc.sectionName;
6365
configs.run();
6466

6567
} catch(Exception e) {

0 commit comments

Comments
 (0)