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
Copy file name to clipboardExpand all lines: scripts/install.sh
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -321,10 +321,10 @@ detect_shell_rc() {
321
321
add_updater_alias() {
322
322
local shell_rc
323
323
shell_rc=$(detect_shell_rc)
324
-
local alias_line="alias dartotsu-updater='bash <(curl -s https://raw.githubusercontent.com/aayush2622/Dartotsu/main/scripts/install.sh)'"
324
+
local alias_line="alias dartotsu-updater='bash <(curl -s https://raw.githubusercontent.com/aayush2622/Dartotsu/main/scripts/install.sh) update'"
325
325
326
326
if grep -Fxq "$alias_line""$shell_rc"2>/dev/null;then
327
-
echo -ne "${YELLOW}${ICON_WARNING}${RESET}Alias already exists in $(basename "$shell_rc"). Do you want to remove it? [y/N]: "
327
+
echo -ne "${YELLOW}${ICON_WARNING}${RESET}The 'dartotsu-updater' alias already exists in your shell config file ($(basename "$shell_rc")). Would you like to remove it? [y/N]: "
328
328
read -r remove_response
329
329
case"$remove_response"in
330
330
[yY][eE][sS]|[yY])
@@ -336,7 +336,7 @@ add_updater_alias() {
336
336
;;
337
337
esac
338
338
else
339
-
echo -ne "${CYAN}${ICON_MAGIC}${RESET}Do you want to add the 'dartotsu-updater' alias to $(basename "$shell_rc")? [y/N]: "
339
+
echo -ne "${CYAN}${ICON_MAGIC}${RESET}Would you like to add the 'dartotsu-updater' alias to your shell config file ($(basename "$shell_rc"))? [y/N]: "
340
340
read -r add_response
341
341
case"$add_response"in
342
342
[yY][eE][sS]|[yY])
@@ -831,9 +831,7 @@ main_loop() {
831
831
}
832
832
833
833
# Check if running in interactive mode
834
-
if [ -t 0 ];then
835
-
main_loop
836
-
else
834
+
if [ $#-gt 0 ];then
837
835
# Non-interactive mode - handle command line arguments
0 commit comments