Skip to content

Instantly share code, notes, and snippets.

View comm1x's full-sized avatar

Pavel Shorokhov comm1x

View GitHub Profile
#!/usr/bin/env node
const { execSync, spawn } = require('child_process');
const chalk = require('chalk');
function hasChangesInRepo() {
return execSync('git status --porcelain').toString().length > 0;
}
if (hasChangesInRepo()) {