summaryrefslogtreecommitdiff
path: root/src/ssu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssu.sh')
-rwxr-xr-xsrc/ssu.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssu.sh b/src/ssu.sh
index b0a4020..91df74c 100755
--- a/src/ssu.sh
+++ b/src/ssu.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-LIBROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+LIBROOT="$(cd "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}")" && pwd)"
BINPATH=$LIBROOT/../bin
IPLISTPATH=$LIBROOT/../iplist
V2RAY_PLUGIN_BIN_PATH="$BINPATH/v2ray-plugin_$WORDSTUFFIX"