Fix SSHEND error.
This commit is contained in:
+2
-2
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user