You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"If you really want to run this script in a non-interactively, pass the ${BLUE}--yes${RESET} flag to accept installing astra in the following location:"
error "Error: curl is not installed. Please install curl and try again."
@@ -168,36 +156,6 @@ else
168
156
checklist "No existing installation found."
169
157
fi
170
158
171
-
# Verify installation path
172
-
echo""
173
-
echo"${GREEN}Ready to install Astra CLI ✅${RESET}"
174
-
echo""
175
-
echo"Do you want to install Astra CLI to $(underline "$(tildify "$ASTRA_CLI_DIR/")")? ${BLUE}[Y]es/[d]ifferent path/[c]ancel${RESET}"
176
-
177
-
while [ "$AUTO_YES_INSTALL"= 0 ];do
178
-
printf"%s""${BLUE}> ${RESET}"
179
-
read -r res
180
-
181
-
case${res:-y}in
182
-
[Yy]* )
183
-
for_in$(seq 1 5);do tput cuu1 && tput el;done
184
-
break;;
185
-
[Dd]*)
186
-
echo""
187
-
echo"${RED}To use a custom installation path, please globally set the ASTRA_HOME environment variable.${RESET}"
188
-
echo""
189
-
echo"This variable $(tput bold)must remain in place forever${RESET} (e.g. in your shell profile like $(underline "~/.zprofile"), $(underline "~/.bash_profile"), etc.) so that the CLI can always locate its home directory."
190
-
echo""
191
-
echo"After setting it, restart your terminal or run 'source ~/.zprofile' (or the appropriate file) to apply the change."
192
-
exit 1
193
-
;;
194
-
[Cc]* )
195
-
error "\nCancelling installation.";;
196
-
* )
197
-
echo"Please answer ${BLUE}yes${RESET}, ${BLUE}no${RESET}, or ${BLUE}cancel${RESET}.";;
198
-
esac
199
-
done
200
-
201
159
# Create installation directory
202
160
if mkdir -p "$ASTRA_CLI_DIR";then
203
161
checklist "Using installation dir $(underline "$(tildify "$ASTRA_CLI_DIR/")")${RESET}${LIGHT_GRAY}."
@@ -210,7 +168,7 @@ echo ""
210
168
echo"Downloading archive..."
211
169
212
170
if curl -fL --progress-bar "$install_url">"$TAR_PATH";then
0 commit comments