You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: init/eessi_archdetect.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -165,11 +165,11 @@ accelpath() {
165
165
# If EESSI_ACCELERATOR_TARGET_OVERRIDE is set, use it
166
166
log "DEBUG""accelpath: Override variable set as '$EESSI_ACCELERATOR_TARGET_OVERRIDE' "
167
167
if [ !-z$EESSI_ACCELERATOR_TARGET_OVERRIDE ];then
168
-
if [[ "$EESSI_ACCELERATOR_TARGET_OVERRIDE"=~ ^accel/nvidia/cc[0-9][0-9]$ ]];then
168
+
if [[ "$EESSI_ACCELERATOR_TARGET_OVERRIDE"=~ ^accel/nvidia/cc[0-9]+$ ]];then
169
169
echo${EESSI_ACCELERATOR_TARGET_OVERRIDE}
170
170
return 0
171
171
else
172
-
log "ERROR""Value of \$EESSI_ACCELERATOR_TARGET_OVERRIDE should match 'accel/nvidia/cc[0-9[0-9]', but it does not: '$EESSI_ACCELERATOR_TARGET_OVERRIDE'"
172
+
log "ERROR""Value of \$EESSI_ACCELERATOR_TARGET_OVERRIDE should match 'accel/nvidia/cc[0-9]+', but it does not: '$EESSI_ACCELERATOR_TARGET_OVERRIDE'"
0 commit comments