Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 04809bf

Browse files
committed
pull: fix super obvious bug for when a db doesn't exist locally yet
1 parent eeca943 commit 04809bf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/shared.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ func dbChanged(db string, meta metaData) (changed bool, err error) {
110110
// size is different
111111
fi, err := os.Stat(db)
112112
if err != nil {
113+
if os.IsNotExist(err) {
114+
return false, nil
115+
}
113116
return
114117
}
115118
fileSize := int(fi.Size())

0 commit comments

Comments
 (0)