fix: 提前判断 /proc/version 是否存在
This commit is contained in:
parent
83ba97dd18
commit
bf413997f8
@ -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
|
||||||
|
if grep -q Microsoft /proc/version; then
|
||||||
# Xming
|
# Xming
|
||||||
export DISPLAY=:0;
|
export DISPLAY=:0;
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user