Skip to content

Commit 96e3a0c

Browse files
Brenexjakeaturner
authored andcommitted
fix(install): correct nvidia runtime string evaluation
Removed quotes around the nvidia runtime string to properly match the unquoted output from docker info.
1 parent 7b482d6 commit 96e3a0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/install_nomad.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ verify_gpu_setup() {
519519
fi
520520

521521
# Check if Docker has NVIDIA runtime
522-
if docker info 2>/dev/null | grep -q \"nvidia\"; then
522+
if docker info 2>/dev/null | grep -q "nvidia"; then
523523
echo -e "${GREEN}${RESET} Docker NVIDIA runtime configured\\n"
524524
else
525525
echo -e "${YELLOW}${RESET} Docker NVIDIA runtime not detected\\n"
@@ -535,7 +535,7 @@ verify_gpu_setup() {
535535
echo -e "${YELLOW}===========================================${RESET}\\n"
536536

537537
# Summary
538-
if command -v nvidia-smi &> /dev/null && docker info 2>/dev/null | grep -q \"nvidia\"; then
538+
if command -v nvidia-smi &> /dev/null && docker info 2>/dev/null | grep -q "nvidia"; then
539539
echo -e "${GREEN}#${RESET} GPU acceleration is properly configured! The AI Assistant will use your GPU.\\n"
540540
else
541541
echo -e "${YELLOW}#${RESET} GPU acceleration not detected. The AI Assistant will run in CPU-only mode.\\n"

0 commit comments

Comments
 (0)