We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e730c02 + bfcf95f commit 505d664Copy full SHA for 505d664
src/nixos-anywhere.sh
@@ -657,13 +657,13 @@ TMPDIR=/root/kexec setsid sudo /root/kexec/kexec/run --kexec-extra-flags \"$kexe
657
658
remoteCommands=${remoteCommandTemplate//'%TAR_COMMAND%'/$tarCommand}
659
660
- runSsh sh -c "$remoteCommands"
+ runSsh sh -c "$(printf '%q' "$remoteCommands")"
661
else
662
# Use local command with pipe to remote
663
tarCommand="${maybeSudo} tar -C /root/kexec -xvzf-"
664
665
666
- "${localUploadCommand[@]}" | runSsh sh -c "$remoteCommands"
+ "${localUploadCommand[@]}" | runSsh sh -c "$(printf '%q' "$remoteCommands")"
667
fi
668
669
# use the default SSH port to connect at this point
0 commit comments