Update grub/grub.sh

This commit is contained in:
2025-12-30 21:21:46 +01:00
parent 283d584415
commit c98b4fdcca

View File

@@ -9,7 +9,7 @@ if [[ -f "$GRUB_FILE" ]]; then
# Replace or add the GRUB_TIMEOUT line
if grep -q "^GRUB_TIMEOUT=" "$GRUB_FILE"; then
# Modify existing line
sed -i 's/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=0/' "$GRUB_FILE"
sudo sed -i 's/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=0/' "$GRUB_FILE"
else
# Add it if missing
echo "GRUB_TIMEOUT=0" >> "$GRUB_FILE"