utils: fix deps import

Signed-off-by: dzdidi <deniszalessky@gmail.com>
This commit is contained in:
dzdidi
2024-02-15 17:46:14 +00:00
parent 640a38f8c1
commit cd6177d4bf

View File

@@ -1,3 +1,5 @@
const fs = require('fs')
const path = require('path')
function printACL(repoACL) { function printACL(repoACL) {
console.log('Repo Visibility:', '\t', repoACL.visibility) console.log('Repo Visibility:', '\t', repoACL.visibility)
@@ -16,7 +18,7 @@ function printACLForUser(repoACL, u) {
function checkIfGitRepo(p) { function checkIfGitRepo(p) {
if (!fs.existsSync(path.join(p, '.git'))) { if (!fs.existsSync(path.join(p, '.git'))) {
console.error('Not a git repo') console.error(` ${p} is not a git repo`)
process.exit(1) process.exit(1)
} }
} }