File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -278,15 +278,20 @@ if command_exists pingu; then
278278 else
279279 printf " Do you want to reinstall/upgrade? [y/N] "
280280
281- # Handle non-interactive mode (when piped)
281+ # Read user response
282282 if [ -t 0 ]; then
283- # Interactive mode - read from terminal
283+ # Terminal is available, read normally
284284 read -r response
285285 else
286- # Non-interactive mode - assume yes for upgrades
287- echo " y"
288- echo_e " ${INFO} Non-interactive mode detected. Auto-proceeding with upgrade..."
289- response=" y"
286+ # No terminal (piped), exit with instructions
287+ echo " "
288+ echo_e " ${INFO} Non-interactive mode detected."
289+ echo_e " ${INFO} To upgrade in non-interactive mode, use:"
290+ echo_e " "
291+ echo_e " ${CYAN} curl -fsSL ... | sh -s -- --force${NC} "
292+ echo_e " "
293+ echo_e " ${INFO} Installation cancelled"
294+ exit 0
290295 fi
291296
292297 case " $response " in
You can’t perform that action at this time.
0 commit comments