mirror of
https://github.com/bower/bower.git
synced 2026-02-12 06:55:04 -05:00
I'm dumb.
This commit is contained in:
@@ -12,13 +12,11 @@ var which = require('which');
|
||||
var hasGit;
|
||||
|
||||
// Check if git is installed
|
||||
if (hasGit == null) {
|
||||
try {
|
||||
which.sync('git');
|
||||
hasGit = true;
|
||||
} catch (ex) {
|
||||
hasGit = false;
|
||||
}
|
||||
try {
|
||||
which.sync('git');
|
||||
hasGit = true;
|
||||
} catch (ex) {
|
||||
hasGit = false;
|
||||
}
|
||||
|
||||
function GitResolver(source, options) {
|
||||
|
||||
Reference in New Issue
Block a user