Skip to content

Commit 8a74dee

Browse files
committed
Upstream.
1 parent 9576ce8 commit 8a74dee

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

_lib/ubiquitous_bash

ubiquitous_bash.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _ub_cksum_special_derivativeScripts_contents() {
3636
#export ub_setScriptChecksum_disable='true'
3737
( [[ -e "$0".nck ]] || [[ "${BASH_SOURCE[0]}" != "${0}" ]] || [[ "$1" == '--profile' ]] || [[ "$1" == '--script' ]] || [[ "$1" == '--call' ]] || [[ "$1" == '--return' ]] || [[ "$1" == '--devenv' ]] || [[ "$1" == '--shell' ]] || [[ "$1" == '--bypass' ]] || [[ "$1" == '--parent' ]] || [[ "$1" == '--embed' ]] || [[ "$1" == '--compressed' ]] || [[ "$0" == "/bin/bash" ]] || [[ "$0" == "-bash" ]] || [[ "$0" == "/usr/bin/bash" ]] || [[ "$0" == "bash" ]] ) && export ub_setScriptChecksum_disable='true'
3838
export ub_setScriptChecksum_header='2591634041'
39-
export ub_setScriptChecksum_contents='1560085226'
39+
export ub_setScriptChecksum_contents='3289137932'
4040

4141
# CAUTION: Symlinks may cause problems. Disable this test for such cases if necessary.
4242
# WARNING: Performance may be crucial here.
@@ -15518,7 +15518,11 @@ _set_discreteGPU-forWSL() {
1551815518
[[ "$MESA_D3D12_DEFAULT_ADAPTER_NAME" != "" ]] && return 0
1551915519

1552015520
# https://github.com/microsoft/wslg/wiki/GPU-selection-in-WSLg
15521-
glxinfo -B | grep -i intel > /dev/null 2>&1 && export MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA
15521+
if type -p glxinfo > /dev/null 2>&1
15522+
then
15523+
glxinfo -B | grep -i intel > /dev/null 2>&1 && export MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA
15524+
return
15525+
fi
1552215526
}
1552315527

1552415528
_set_msw_ghToken() {

0 commit comments

Comments
 (0)