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
say"Could not detect shell. To simplify access to the installer, add the following to your shell configuration file:\n$_alias_def"
127
+
warn"Could not detect shell. To simplify access to the installer, add the following to your shell configuration file:\nalias starkup=\"curl --proto '=https' --tlsv1.2 -sSf ${SCRIPT_URL} | sh -s --\""
115
128
return
116
129
fi
117
130
@@ -120,7 +133,7 @@ add_alias() {
120
133
# Alias for running starkup installer
121
134
$_alias_def
122
135
EOF
123
-
say"'starkup' alias added to ${_shell_config}. You can use 'starkup' to directly access the installer next time."
136
+
info"'starkup' alias added to ${_shell_config}. You can use 'starkup' to directly access the installer next time."
124
137
fi
125
138
}
126
139
@@ -195,7 +208,7 @@ install_latest_version() {
195
208
_tool="$1"
196
209
_latest_version=$(asdf latest "$_tool")
197
210
if check_version_installed "$_tool""$_latest_version";then
say"Failed to fetch latest version for $_repo (possibly due to GitHub server rate limit or error). Using default version $_default_version.">&2
252
+
warn"Failed to fetch latest version for $_repo (possibly due to GitHub server rate limit or error). Using default version $_default_version.">&2
240
253
_latest_version="$_default_version"
241
254
}
242
255
@@ -260,8 +273,16 @@ say() {
260
273
printf'starkup: %b\n'"$1"
261
274
}
262
275
276
+
info() {
277
+
say "${BOLD}info:${RESET}$1"
278
+
}
279
+
280
+
warn() {
281
+
say "${BOLD}${YELLOW}warn:${RESET}${YELLOW}$1${RESET}"
282
+
}
283
+
263
284
err() {
264
-
say "$1">&2
285
+
say "${BOLD}${RED}error:${RESET}${RED}$1${RESET}">&2
265
286
exit 1
266
287
}
267
288
@@ -299,7 +320,7 @@ install_asdf() {
299
320
_need_interaction="$1"
300
321
_answer=""
301
322
if"$_need_interaction";then
302
-
say"asdf-vm is required but not found.\nFor seamless updates, install it using a package manager (e.g., Homebrew, AUR helpers). See details: ${ASDF_INSTALL_DOCS}.\nAlternatively, the script can install asdf-vm directly, but manual updates might be needed later.\nProceed with direct installation? (y/N):"
323
+
info"asdf-vm is required but not found.\nFor seamless updates, install it using a package manager (e.g., Homebrew, AUR helpers). See details: ${ASDF_INSTALL_DOCS}.\nAlternatively, the script can install asdf-vm directly, but manual updates might be needed later.\nProceed with direct installation? (y/N):"
303
324
if [ !-t 0 ];then
304
325
# Starkup is going to want to ask for confirmation by
305
326
# reading stdin. This script may be piped into `sh` though
0 commit comments