@itentialopensource/adapter-godaddy
Version:
This adapter integrates with system described as: GoDaddy REST API v1 and v2.
21 lines (17 loc) • 490 B
JavaScript
const fs = require('fs');
/**
* This script will uninstall pre-commit or pre-push hooks in case there's ever a need to
* commit/push something that has issues
*/
const precommitPath = '.git/hooks/pre-commit';
const prepushPath = '.git/hooks/pre-push';
fs.unlink(precommitPath, (err) => {
if (err && err.code !== 'ENOENT') {
console.log(`${err.message}`);
}
});
fs.unlink(prepushPath, (err) => {
if (err && err.code !== 'ENOENT') {
console.log(`${err.message}`);
}
});