Skip to content

Commit

Permalink
Fix IsNew status
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jul 15, 2019
1 parent 5c6952b commit e015856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func PrepareDotfiles(dotfiles resolver.Dotfiles, config config.SourceConfig) Pre
targetInfo, targetStatErr := os.Lstat(installPath)

exists := !os.IsNotExist(targetStatErr)
prepared.IsNew = exists
prepared.IsNew = !exists

// If we're unable to stat our target installation file and the file
// exists there's likely a permissions issue.
Expand Down

0 comments on commit e015856

Please sign in to comment.