Problem
Currently, when the frontend executes a shell script and it fails, the UI throws away the script's actual error message and strictly hardcodes Script exited with status %d.
Because of this, we cannot tell users why something failed (e.g., "Internet Required"). The user just sees "status 1"
Proposed Solution (Minimal Change)
Instead of unconditionally printing the hardcoded Script exited with status %d message, please have the frontend grab the last non-empty line from the script's output buffer (stderr or stdout) and display that text in the UI error state.
How it works for us:
If we want to show a specific error, our script just prints it right before exiting:
curl -fsSL https://... || { echo "Internet Required"; exit 1; }