Skip to content

Commit

Permalink
Skip deleted file when updating release version in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Oct 17, 2022
1 parent 08d5e4a commit a71caa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release/update-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const [ tag ] = run('git', 'tag')
// Ordering tag → HEAD is important here.
const files = run('git', 'diff', tag, 'HEAD', '--name-only', 'contracts/**/*.sol')
.split(/\r?\n/)
.filter(file => file && !file.match(/mock/i));
.filter(file => file && !file.match(/mock/i) && fs.existsSync(file));

for (const file of files) {
const current = fs.readFileSync(file, 'utf8');
Expand Down

0 comments on commit a71caa2

Please sign in to comment.