Merge pull request #6906 from koalazak/fix_missing_lspci
fixing error using lspci on macOsX
This commit is contained in:
commit
6620acff8c
1 changed files with 1 additions and 1 deletions
2
webui.sh
2
webui.sh
|
@ -165,7 +165,7 @@ else
|
||||||
printf "\n%s\n" "${delimiter}"
|
printf "\n%s\n" "${delimiter}"
|
||||||
printf "Launching launch.py..."
|
printf "Launching launch.py..."
|
||||||
printf "\n%s\n" "${delimiter}"
|
printf "\n%s\n" "${delimiter}"
|
||||||
gpu_info=$(lspci | grep VGA)
|
gpu_info=$(lspci 2>/dev/null | grep VGA)
|
||||||
if echo "$gpu_info" | grep -q "AMD"
|
if echo "$gpu_info" | grep -q "AMD"
|
||||||
then
|
then
|
||||||
if [[ -z "${TORCH_COMMAND}" ]]
|
if [[ -z "${TORCH_COMMAND}" ]]
|
||||||
|
|
Loading…
Reference in a new issue