Fix update-comment.js
This commit is contained in:
@ -4,7 +4,7 @@ const fs = require('fs');
|
|||||||
const glob = require('glob');
|
const glob = require('glob');
|
||||||
const proc = require('child_process');
|
const proc = require('child_process');
|
||||||
|
|
||||||
const gitStatus = proc.execFileSync('git', ['status', '--porcelain', '-uno', 'contracts']);
|
const gitStatus = proc.execFileSync('git', ['status', '--porcelain', '-uno', 'contracts/**/*.sol']);
|
||||||
|
|
||||||
if (gitStatus.length > 0) {
|
if (gitStatus.length > 0) {
|
||||||
console.error('Contracts directory is not clean');
|
console.error('Contracts directory is not clean');
|
||||||
|
|||||||
Reference in New Issue
Block a user