Merge pull request #127284 from rnhmjoj/nixos-rebuild

nixos-rebuild: fix --use-remote-sudo
This commit is contained in:
Michele Guerini Rocco 2021-06-20 11:19:29 +02:00 committed by GitHub
commit 3b8bbacf81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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