Skip to content

Commit 0963a7e

Browse files
committed
Ignore .DS_Store when checking if it's safe to manage the server dir
1 parent a77a824 commit 0963a7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ if (!amMainInstance) {
280280
if (serverPaths.some((filename) =>
281281
!semver.valid(filename.replace(/\.partial\.\d+$/, '')) &&
282282
filename !== 'bin' &&
283-
filename !== 'current'
283+
filename !== 'current' &&
284+
filename !== '.DS_Store' // Meaningless Mac folder metadata
284285
)) {
285286
// If the folder contains something other than the expected version folders, be careful.
286287
console.log(serverPaths);

0 commit comments

Comments
 (0)