From 769ca0a44bcb5b0dd52d39dc5290efde91f152ab Mon Sep 17 00:00:00 2001 From: imbytecat Date: Thu, 26 Mar 2026 19:23:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor(wsl):=20=E7=BB=9F=E4=B8=80=20WSL=20?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=96=B9=E5=BC=8F=E4=B8=BA=20WSLInterop=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/wsl-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wsl-init.sh b/scripts/wsl-init.sh index 4867801..48164e4 100755 --- a/scripts/wsl-init.sh +++ b/scripts/wsl-init.sh @@ -6,7 +6,7 @@ if [ "$(id -u)" -ne 0 ]; then exit 1 fi -if ! grep -qiE '(microsoft|wsl)' /proc/sys/kernel/osrelease 2>/dev/null; then +if [[ ! -f /proc/sys/fs/binfmt_misc/WSLInterop ]]; then echo "此脚本仅用于 Arch Linux on WSL 的首次初始化" exit 1 fi