Skip to content

Commit 49f92e1

Browse files
authored
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.
1 parent 0fba391 commit 49f92e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/swizzin-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then
2323
msg_error "Aborted by user. No changes have been made."
2424
exit 10
2525
fi
26-
bash <(curl -sL s5n.sh)
26+
bash <(curl -fsSL https://s5n.sh)
2727

2828
motd_ssh
2929
customize

0 commit comments

Comments
 (0)