Merge pull request #70734 from jtojnar/nixos-rebuild-remote-fish

nixos-rebuild: Fix target-host using fish
This commit is contained in:
Jan Tojnar 2019-10-11 13:26:11 +02:00 committed by GitHub
commit 1739d34904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ buildHostCmd() {
if [ -z "$buildHost" ]; then
"$@"
elif [ -n "$remoteNix" ]; then
ssh $SSHOPTS "$buildHost" PATH="$remoteNix:$PATH" "$@"
ssh $SSHOPTS "$buildHost" env PATH="$remoteNix:$PATH" "$@"
else
ssh $SSHOPTS "$buildHost" "$@"
fi