From 49bf07d5b685b9b08387f9e7fe88142af39c241d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:59:22 +0800 Subject: [PATCH] Update serv00.sh --- serv00.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/serv00.sh b/serv00.sh index e032f99..903a47b 100644 --- a/serv00.sh +++ b/serv00.sh @@ -1286,10 +1286,8 @@ if [[ -e $WORKDIR/config.json ]]; then mkdir -p "$HOME/bin" curl -Ls https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/serv00.sh > "$SCRIPT_PATH" chmod +x "$SCRIPT_PATH" - if [[ ":$PATH:" != *":$HOME/bin:"* ]]; then - echo "export PATH=\"\$HOME/bin:\$PATH\"" >> "$HOME/.bashrc" - source "$HOME/.bashrc" - fi + echo "export PATH=\"\$HOME/bin:\$PATH\"" >> "$HOME/.bashrc" + source "$HOME/.bashrc" curl -sL https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/app.js -o "$keep_path"/app.js sed -i '' "15s/name/$snb/g" "$keep_path"/app.js sed -i '' "60s/key/$UUID/g" "$keep_path"/app.js