Skip to content

Commit ea99fa2

Browse files
fix
1 parent 84c38de commit ea99fa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.bin/create-rust-webpack.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function isPresent(dep) {
1111
try {
1212
execSync(dep, {stdio: 'ignore'});
1313
return true;
14-
} catch (...) {
14+
} catch (err) {
1515
return false;
1616
}
1717
}
@@ -28,7 +28,7 @@ function run(cmd, args, opts) {
2828
}
2929
}
3030

31-
if (!isPresent("git --help")) {
31+
if (!isPresent("git --version")) {
3232
console.log('\n git is required');
3333
process.exit(1);
3434
}

0 commit comments

Comments
 (0)