From 11d269dcd97178e8c247a4c0aceecc6b72211b04 Mon Sep 17 00:00:00 2001 From: "Anthony M. Cook" Date: Wed, 7 Feb 2024 13:00:33 -0600 Subject: [PATCH] Remove redundant DO check Removed line performs the same check and the same action as the block a couple lines below --- nixos-infect | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index ce97278..05bcbdd 100644 --- a/nixos-infect +++ b/nixos-infect @@ -375,7 +375,6 @@ infect() { /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" if [[ "$PROVIDER" = "digitalocean" ]] || [[ "$PROVIDER" = "servarica" ]] || [[ "$PROVIDER" = "hetznercloud" ]]; then doNetConf=y # some providers require detailed network config to be generated