fix(swizzin): Use HTTPS and add curl error handling (#10440)

- Add https:// to s5n.sh URL to ensure secure connection
- Add -f flag to fail on HTTP errors instead of piping error pages to bash
- Add -S flag to show errors even in silent mode

Without -f, if the server returns an error page (4xx/5xx), curl would
pipe that HTML content to bash, causing unexpected behavior.
This commit is contained in:
Fraser McGlinn
2025-12-31 21:46:24 +13:00
committed by GitHub
parent 0fba391aa6
commit 49f92e1cf4

View File

@@ -23,7 +23,7 @@ if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then
msg_error "Aborted by user. No changes have been made."
exit 10
fi
bash <(curl -sL s5n.sh)
bash <(curl -fsSL https://s5n.sh)
motd_ssh
customize