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
(cherry picked from commit a71caa2)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
  • Loading branch information
Amxx committed Oct 17, 2022
1 parent 3742c16 commit 1a41a50
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 1a41a50

Please sign in to comment.