mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 01:49:54 +07:00
arc-functions: fix warning
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
94c1c901c2
commit
1462a53e6a
@ -1157,12 +1157,12 @@ function sysinfo() {
|
||||
TEXT+="\n CPU: \Zb${CPU}\Zn"
|
||||
if [ $(lspci -d ::300 | wc -l) -gt 0 ]; then
|
||||
for PCI in $(lspci -d ::300 | awk '{print $1}'); do
|
||||
GPUNAME=$(sudo lspci -s ${PCI} | sed "s/\ .*://" | awk '{$1=""}1' | awk '{$1=$1};1')
|
||||
GPUNAME=$(lspci -s ${PCI} | sed "s/\ .*://" | awk '{$1=""}1' | awk '{$1=$1};1')
|
||||
TEXT+="\n iGPU: \Zb${GPUNAME}\Zn"
|
||||
done
|
||||
elif [ $(lspci -d ::380 | wc -l) -gt 0 ]; then
|
||||
for PCI in $(lspci -d ::380 | awk '{print $1}'); do
|
||||
GPUNAME=$(sudo lspci -s ${PCI} | sed "s/\ .*://" | awk '{$1=""}1' | awk '{$1=$1};1')
|
||||
GPUNAME=$(lspci -s ${PCI} | sed "s/\ .*://" | awk '{$1=""}1' | awk '{$1=$1};1')
|
||||
TEXT+="\n GPU: \Zb${GPUNAME}\Zn"
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user