mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-04 04:13:26 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user