Skip to content

Commit 4b39446

Browse files
committed
Fix (harmless) render-device.sh shellcheck warnings
Signed-off-by: Eero Tamminen <[email protected]>
1 parent 3739fcb commit 4b39446

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/gpu_plugin/render-device.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ for i in $(seq 128 255); do
7373
vendor=$(cat "/sys/class/drm/renderD$i/device/vendor")
7474
if [ "$vendor" = "$intel" ]; then
7575
visible=$((visible+1))
76-
if [ $visible -eq $required ]; then
76+
if [ $visible -eq "$required" ]; then
7777
break
7878
fi
7979
fi
8080
fi
8181
done
8282

83-
if [ $visible -ne $required ]; then
83+
if [ $visible -ne "$required" ]; then
8484
usage "$visible Intel GPU(s) found, not $required as requested"
8585
fi
8686
device="/dev/dri/renderD$i"
@@ -91,7 +91,7 @@ if [ $# -eq 0 ]; then
9191
fi
9292

9393
if [ $# -lt 2 ]; then
94-
usage "media program and/or GPU selection option missing"
94+
usage "media program and/or its GPU selection option missing"
9595
fi
9696

9797
# run given media workload with GPU device name appended to end

0 commit comments

Comments
 (0)