fix: 提前判断 /proc/version 是否存在
This commit is contained in:
parent
83ba97dd18
commit
bf413997f8
@ -23,7 +23,9 @@ if [ -d "$HOME/.yarn" ]; then
|
||||
fi
|
||||
|
||||
# WSL1
|
||||
if grep -q Microsoft /proc/version; then
|
||||
# Xming
|
||||
export DISPLAY=:0;
|
||||
if [ -f "/proc/version" ]; then
|
||||
if grep -q Microsoft /proc/version; then
|
||||
# Xming
|
||||
export DISPLAY=:0;
|
||||
fi
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user