Skip to content

Commit 796a9ab

Browse files
committed
Include both indexes for dry run arg
1 parent 1e2b3ae commit 796a9ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app/scripts/publish-without-make.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { api as forge } from '@electron-forge/core';
33

44
console.log(process.argv);
55

6-
const isDryRun = process.argv[3] === '--dry-run';
6+
const isDryRun =
7+
process.argv[2] === '--dry-run' || process.argv[3] === '--dry-run';
78

89
console.log(isDryRun ? 'Starting a dry run' : 'Publishing from dry run');
910

0 commit comments

Comments
 (0)