Skip to content

Commit 3750157

Browse files
committed
fix del alias
1 parent 7c9622d commit 3750157

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sing-box.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
args=$@
4-
is_sh_ver=v1.13
4+
is_sh_ver=v1.14
55

66
. /etc/sing-box/sh/src/init.sh

src/core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ uninstall() {
680680
manage stop &>/dev/null
681681
manage disable &>/dev/null
682682
rm -rf $is_core_dir $is_log_dir $is_sh_bin ${is_sh_bin/$is_core/sb} /lib/systemd/system/$is_core.service
683-
sed -i "/alias $is_core=/d" /root/.bashrc
683+
sed -i "/$is_core/d" /root/.bashrc
684684
# uninstall caddy; 2 is ask result
685685
if [[ $REPLY == '2' ]]; then
686686
manage stop caddy &>/dev/null

0 commit comments

Comments
 (0)