Skip to content

Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.

TypeScript

build: fix grep command in install script for NVIDIA runtime detection (#526)

Brenex9a8378d63a12
diff --git a/install/install_nomad.sh b/install/install_nomad.sh
index e67f4e51..7bd1f0b3 100644
--- a/install/install_nomad.sh
+++ b/install/install_nomad.sh
@@ -510,7 +510,7 @@ verify_gpu_setup() {
fi
# Check if Docker has NVIDIA runtime
- if docker info 2>/dev/null | grep -q \"nvidia\"; then
+ if docker info 2>/dev/null | grep -q "nvidia"; then
echo -e "${GREEN}✓${RESET} Docker NVIDIA runtime configured\\n"
else
echo -e "${YELLOW}○${RESET} Docker NVIDIA runtime not detected\\n"
@@ -526,11 +526,11 @@ verify_gpu_setup() {
echo -e "${YELLOW}===========================================${RESET}\\n"
# Summary
- if command -v nvidia-smi &> /dev/null && docker info 2>/dev/null | grep -q \"nvidia\"; then
+ if command -v nvidia-smi &> /dev/null && docker info 2>/dev/null | grep -q "nvidia"; then
echo -e "${GREEN}#${RESET} GPU acceleration is properly configured! The AI Assistant will use your GPU.\\n"
else
echo -e "${YELLOW}#${RESET} GPU acceleration not detected. The AI Assistant will run in CPU-only mode.\\n"
- if command -v nvidia-smi &> /dev/null && ! docker info 2>/dev/null | grep -q \"nvidia\"; then
+ if command -v nvidia-smi &> /dev/null && ! docker info 2>/dev/null | grep -q "nvidia"; then
echo -e "${YELLOW}#${RESET} Tip: Your GPU is detected but Docker runtime is not configured.\\n"
echo -e "${YELLOW}#${RESET} Try restarting Docker: ${WHITE_R}sudo systemctl restart docker${RESET}\\n"
fi