Fix SSHEND error.

This commit is contained in:
Raphaël Numbus
2026-05-25 17:13:25 +02:00
parent e3142e3032
commit 19ae7369e3
+2 -2
View File
@@ -90,7 +90,7 @@ hierarchy_preparation() {
hardware_detection() {
local TMPFILE="/tmp/nixos-installation-hw-detection.json"
ssh_to_host "nix-shell -p jq pciutils usbutils smartmontools iproute2 --run 'bash -s'" << SSHEND
ssh_to_host "nix-shell -p jq pciutils usbutils smartmontools iproute2 --run 'bash -s'" << SSHEND > "${STDOUT}" 2> "${STDERR}"
set -euo pipefail
# --- Initialize Global JSON Output ---
@@ -339,7 +339,7 @@ detect_disks
# --- Output ---
echo "\$HW_REPORT" | jq '.' > "$TMPFILE"
SSHEND > "${STDOUT}" 2> "${STDERR}"
SSHEND
scp -i "${TMP_EXTRA_PATH}/home/numbus-admin/.ssh/id_ed25519" "${TARGET_USER}@${LIVE_TARGET_IP}":"${TMPFILE}" "${HW_DATA_FILE}" > "${STDOUT}" 2> "${STDERR}"