From 490c4429f0139e7c090646b42153f377784804b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Fri, 2 Jan 2026 20:12:26 +0100 Subject: [PATCH] Updated style and removed EOFs --- deploy.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/deploy.sh b/deploy.sh index d16b907..b8791b3 100644 --- a/deploy.sh +++ b/deploy.sh @@ -93,9 +93,9 @@ necessary_credentials_with_config() { local MISSING=0 for VAR in "${NECESSARY_VARIABLES_LIST[@]}"; do if [[ -v "${VAR}" && -n "${!VAR}" ]]; then - gum spin --title "✅ "${VAR}" imported successfully from the config file" -- sleep 0.1 + gum style "✅ "${VAR}" imported successfully from the config file" else - gum spin --title "❌ "${VAR}" is missing or empty" -- sleep 1 + gum style "❌ "${VAR}" is missing or empty" MISSING=1 fi done @@ -492,13 +492,11 @@ EOF cp -avu templates/nix-config/disks/snapraid.nix final-nix-config/etc/nixos/disks/ cp -avu templates/nix-config/disks/pcr-check.nix final-nix-config/etc/nixos/disks/ sed -i "s|# ./disks/snapraid.nix| ./disks/snapraid.nix|" final-nix-config/etc/nixos/configuration.nix -EOF j=0 for i in $(seq 0 $(($CONTENT_DISK_NUMBER - 1))); do export j=$((j + 1)) export CONTENT_DISK_ID="${DATA_DISKS_ID[${i}]}" (envsubst < "templates/nix-config/disks/content.nix") >> final-nix-config/etc/nixos/disks/disko.nix -EOF done echo -e "\n✅ Generated $CONTENT_DISK_NUMBER data disk configuration(s)." j=0 @@ -506,7 +504,6 @@ EOF export j=$((j + 1)) export PARITY_DISK_ID="${DATA_DISKS_ID[${i}]}" (envsubst < "templates/nix-config/disks/parity.nix") >> final-nix-config/etc/nixos/disks/disko.nix -EOF done echo -e "\n✅ Generated $PARITY_DISK_NUMBER parity disk configuration(s)." fi