From fb27d6797268ff9cb139bc6258a89fe25ad85027 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 27 Feb 2024 17:07:52 -0500 Subject: [PATCH] Only require sh, not bash, on the remote machine --- src/nixos-anywhere.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nixos-anywhere.sh b/src/nixos-anywhere.sh index 00fb57ea..fe3158b4 100755 --- a/src/nixos-anywhere.sh +++ b/src/nixos-anywhere.sh @@ -302,7 +302,7 @@ done import_facts() { local facts filtered_facts if ! facts=$( - ssh_ -o ConnectTimeout=10 bash -- </dev/null && echo "y" || echo "n" @@ -371,7 +371,7 @@ if [[ ${is_kexec-n} == "n" ]] && [[ ${is_installer-n} == "n" ]]; then fi step Switching system into kexec - ssh_ bash </dev/null; then fi # We will reboot in background so we can cleanly finish the script before the hosts go down. # This makes integration into scripts easier -nohup bash -c '${maybe_reboot}' >/dev/null & +nohup sh -c '${maybe_reboot}' >/dev/null & SSH if [[ -n ${maybe_reboot} ]]; then