From 5636d9e41d109ec05f81a977a822f3c0985dbc0b Mon Sep 17 00:00:00 2001 From: Arvin <62139570+wnlen@users.noreply.github.com> Date: Sat, 21 Mar 2026 14:25:40 +0800 Subject: [PATCH] Update uninstall.sh --- uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uninstall.sh b/uninstall.sh index 811cda9..06ab8fb 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -3,7 +3,7 @@ set -euo pipefail SERVICE_NAME="clash-for-linux" UNIT_PATH="/etc/systemd/system/${SERVICE_NAME}.service" -INSTALL_DIR="${CLASH_INSTALL_DIR:-/opt/clash-for-linux}" +INSTALL_DIR="${CLASH_INSTALL_DIR:-$(cd "$(dirname "$0")" && pwd)}" CLASHCTL_LINK="/usr/local/bin/clashctl" PROFILED_FILE="/etc/profile.d/clash-for-linux.sh"