alireza0 / s-ui

An advanced Web Panel • Built for SagerNet/Sing-Box
https://t.me/XrayUI
GNU General Public License v3.0
2.62k stars 402 forks source link

Running “s-ui” with zsh results in an error. #187

Closed lingbaoboy closed 3 months ago

lingbaoboy commented 3 months ago

When connecting via SSH and using oh-my-zsh instead of bash, running s-ui results in an error /usr/bin/s-ui: 10: Syntax error: "(" unexpected while it works fine when using bash.

alireza0 commented 3 months ago

Because it is a bash script! Same error may happen when you are using sh instead. It is strongly recommended to run this script in a pure minimal server without any other packages.

If you are a doftware developer and like to run zsh in your shell, then you may know how to change it! :D Add this to your .zshrc file:

alias s-ui="bash -c 's-ui'"