mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-29 13:36:00 +00: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."
|
msg_error "Aborted by user. No changes have been made."
|
||||||
exit 10
|
exit 10
|
||||||
fi
|
fi
|
||||||
bash <(curl -sL s5n.sh)
|
bash <(curl -fsSL https://s5n.sh)
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|||||||
Reference in New Issue
Block a user