fix del alias

This commit is contained in:
233boy
2026-01-15 08:49:54 +08:00
parent 7c9622df74
commit 3750157987
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
args=$@ args=$@
is_sh_ver=v1.13 is_sh_ver=v1.14
. /etc/sing-box/sh/src/init.sh . /etc/sing-box/sh/src/init.sh

View File

@@ -680,7 +680,7 @@ uninstall() {
manage stop &>/dev/null manage stop &>/dev/null
manage disable &>/dev/null manage disable &>/dev/null
rm -rf $is_core_dir $is_log_dir $is_sh_bin ${is_sh_bin/$is_core/sb} /lib/systemd/system/$is_core.service rm -rf $is_core_dir $is_log_dir $is_sh_bin ${is_sh_bin/$is_core/sb} /lib/systemd/system/$is_core.service
sed -i "/alias $is_core=/d" /root/.bashrc sed -i "/$is_core/d" /root/.bashrc
# uninstall caddy; 2 is ask result # uninstall caddy; 2 is ask result
if [[ $REPLY == '2' ]]; then if [[ $REPLY == '2' ]]; then
manage stop caddy &>/dev/null manage stop caddy &>/dev/null