From 375015798732e7669bc4f56264f808b8b64d7d4a Mon Sep 17 00:00:00 2001 From: 233boy <31657650+233boy@users.noreply.github.com> Date: Thu, 15 Jan 2026 08:49:54 +0800 Subject: [PATCH] fix del alias --- sing-box.sh | 2 +- src/core.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sing-box.sh b/sing-box.sh index 38e4e21..e67f46a 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -1,6 +1,6 @@ #!/bin/bash args=$@ -is_sh_ver=v1.13 +is_sh_ver=v1.14 . /etc/sing-box/sh/src/init.sh \ No newline at end of file diff --git a/src/core.sh b/src/core.sh index dc38994..3dd9dcc 100644 --- a/src/core.sh +++ b/src/core.sh @@ -680,7 +680,7 @@ uninstall() { manage stop &>/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 - sed -i "/alias $is_core=/d" /root/.bashrc + sed -i "/$is_core/d" /root/.bashrc # uninstall caddy; 2 is ask result if [[ $REPLY == '2' ]]; then manage stop caddy &>/dev/null