From 5917875ebe7783ad7ed805d845019c0b67b8f99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Fri, 2 Jan 2026 22:13:54 +0100 Subject: [PATCH] Added source --- deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 010c615..f84d0d0 100644 --- a/deploy.sh +++ b/deploy.sh @@ -240,7 +240,7 @@ SSHEND ### Get hardware information <-- scp -i "final-nix-config/home/numbus-admin/.ssh/id_ed25519" "${TARGET_USER}@${TARGET_HOST}":"${TMPFILE}" "${TMPFILE}" &> /dev/null - source "${TMPFILE}" && rm "${TMPFILE}" + source "${TMPFILE}" ### --> Generate hardware-configuration.nix if ssh_to_host "sudo nixos-generate-config --no-filesystems --show-hardware-config" > final-nix-config/etc/nixos/hardware-configuration.nix; then @@ -396,6 +396,8 @@ disk_config_generation() { ### --> Disk selection + source "${TMPFILE}" + if [[ "${#DISK_NAME[@]}" -eq 0 ]]; then echo -e "\n❌ No disks found on the target host. Aborting." exit 1