Remove unneeded ampersand

This commit is contained in:
Andreas Zweili 2023-06-19 11:57:40 +02:00
parent 50417cfa14
commit 53e26498ce
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ do
fqdn="$host.2li.local"
echo $fqdn
if [ $reboot -eq 0 ]; then
nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" &&
nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host"
else
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" &&
ssh -i $rsa_key $fqdn 'sudo reboot'