From 3adc169457b48f914a5da1958f6ba01ccfd158ba Mon Sep 17 00:00:00 2001 From: BadStorm Date: Sat, 1 Nov 2025 19:56:08 +0100 Subject: [PATCH] Minor fix --- install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index fb28379..a8ad2dc 100644 --- a/install.sh +++ b/install.sh @@ -46,8 +46,13 @@ touch /srv/containers/aitools/llamacpp_config.yaml # 10. Aggiornare GRUB echo "Aggiornando GRUB..." -echo "Seleziona la quantità di RAM (16, 24, 32, 48 GB):" -read ram_gb +if [ -t 0 ]; then + echo "Seleziona la quantità di RAM (16, 24, 32, 48 GB):" + read ram_gb +else + echo "Modalità non interattiva: usando default 32GB" + ram_gb=32 +fi case $ram_gb in 16) gttsize=16384