Remove redundant DO check

Removed line performs the same check and the same action as the block a couple lines below
This commit is contained in:
Anthony M. Cook 2024-02-07 13:00:33 -06:00 committed by GitHub
parent 9c5b46d78e
commit 11d269dcd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -375,7 +375,6 @@ infect() {
/nix/var/nix/profiles/system/bin/switch-to-configuration boot /nix/var/nix/profiles/system/bin/switch-to-configuration boot
} }
[ "$PROVIDER" = "digitalocean" ] && doNetConf=y # digitalocean requires detailed network config to be generated
[ "$PROVIDER" = "lightsail" ] && newrootfslabel="nixos" [ "$PROVIDER" = "lightsail" ] && newrootfslabel="nixos"
if [[ "$PROVIDER" = "digitalocean" ]] || [[ "$PROVIDER" = "servarica" ]] || [[ "$PROVIDER" = "hetznercloud" ]]; then if [[ "$PROVIDER" = "digitalocean" ]] || [[ "$PROVIDER" = "servarica" ]] || [[ "$PROVIDER" = "hetznercloud" ]]; then
doNetConf=y # some providers require detailed network config to be generated doNetConf=y # some providers require detailed network config to be generated