-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4014a9f
commit 4b4899c
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
const {execSync} = require('child_process') | ||
export const checkGit = (propName) => { | ||
const checkGit = (propName) => { | ||
if (!propName || propName === 'username') { | ||
console.log(`git config user.name ${execSync('git config user.name')}`) | ||
} | ||
if (!propName || propName === 'email') { | ||
console.log(`git config user.email ${execSync('git config user.email')}`) | ||
} | ||
} | ||
|
||
module.exports = { | ||
checkGit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters