File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 55
66# Print a summary table of system installation status
77
8- set -eo pipefail
8+ # Note: Removed 'set -eo pipefail' to prevent early exits from failed commands
9+ # Individual functions handle errors gracefully with timeouts and || true
910
1011# Status indicators - using ASCII for better compatibility
1112readonly S_ERROR=" [ERROR]"
@@ -150,8 +151,8 @@ detect_npu() {
150151 local npu_status npu_pkg npu_ver
151152
152153 # Check if main NPU package is installed with timeout
153- npu_pkg=$( timeout_cmd 5 dpkg -l | grep ' intel-level-zero-npu' | awk ' {print $2}' )
154- npu_ver=$( timeout_cmd 5 dpkg -l | grep ' intel-level-zero-npu' | awk ' {print $3}' )
154+ npu_pkg=$( timeout_cmd 5 dpkg -l 2> /dev/null | grep ' intel-level-zero-npu' | awk ' {print $2}' || true )
155+ npu_ver=$( timeout_cmd 5 dpkg -l 2> /dev/null | grep ' intel-level-zero-npu' | awk ' {print $3}' || true )
155156
156157 if [ -n " $npu_pkg " ]; then
157158 npu_status=" Detected"
You can’t perform that action at this time.
0 commit comments