does this work lol

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-17 20:48:56 -04:00
parent 6c6b4146dc
commit c3c0d86f9a
1 changed files with 7 additions and 0 deletions

View File

@ -132,6 +132,13 @@ func main() {
fmt.Print("press enter if this looks okay: ")
reader.ReadString('\n')
if *distro == "nixos" {
_, err := mkNixOSImage(*cloudConfig, cdir, vmID)
if err != nil {
log.Fatal(err)
}
}
_, err = os.Stat(qcowPath)
if err != nil {
log.Printf("downloading distro image %s to %s", resultDistro.DownloadURL, qcowPath)