mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-10-04 14:25:39 -04:00
Minor lint tweaks. (#69)
This commit is contained in:
1 parent
91ae0484c8
commit
ea361afa4a
3 files changed
+10
-10
No files matched your search
+8
-8
@@ -1,6 +1,6 @@
|
||||
const path = require('path');
|
||||
const bin = require('./');
|
||||
const log = require('logalot');
|
||||
const bin = require('.');
|
||||
|
||||
function getProjectRoot() {
|
||||
// projectRoot on postinstall could be INIT_CWD introduced in npm>=5.4
|
||||
@@ -21,10 +21,10 @@ function getProjectRoot() {
|
||||
}
|
||||
|
||||
bin(getProjectRoot()).run(['version'])
|
||||
.then(() => {
|
||||
log.success('Hugo binary is installed successfully');
|
||||
})
|
||||
.catch(err => {
|
||||
log.error(err.message);
|
||||
log.error('Hugo binary installation failed');
|
||||
});
|
||||
.then(() => {
|
||||
log.success('Hugo binary is installed successfully');
|
||||
})
|
||||
.catch(err => {
|
||||
log.error(err.message);
|
||||
log.error('Hugo binary installation failed');
|
||||
});
|
||||
Reference in new issue
Block a user