Skip to content

Commit e015856

Browse files
committed
Fix IsNew status
1 parent 5c6952b commit e015856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/prepare.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func PrepareDotfiles(dotfiles resolver.Dotfiles, config config.SourceConfig) Pre
125125
targetInfo, targetStatErr := os.Lstat(installPath)
126126

127127
exists := !os.IsNotExist(targetStatErr)
128-
prepared.IsNew = exists
128+
prepared.IsNew = !exists
129129

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

0 commit comments

Comments
 (0)