fix: 提前判断 /proc/version 是否存在

This commit is contained in:
Konano 2024-07-04 22:51:07 +08:00
parent 83ba97dd18
commit bf413997f8

View File

@ -23,7 +23,9 @@ if [ -d "$HOME/.yarn" ]; then
fi fi
# WSL1 # WSL1
if grep -q Microsoft /proc/version; then if [ -f "/proc/version" ]; then
# Xming if grep -q Microsoft /proc/version; then
export DISPLAY=:0; # Xming
export DISPLAY=:0;
fi
fi fi