Skip to content

Commit

Permalink
Add check for GIT_SILENT
Browse files Browse the repository at this point in the history
  • Loading branch information
Seshpenguin committed Nov 19, 2022
1 parent a419324 commit 0b1535d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/index.ts
Expand Up @@ -125,7 +125,14 @@ async function buildPackage(pkg: Package) {
console.log("🔧 -> Clone package repository");
buildStep = `build-${pkg.name}-clone`;
exec(`mkdir -pv ${pkgDir}/src/${pkg.name}`);
exec(`git clone ${pkg.repo} ${pkgDir}/src/${pkg.name}`);
exec(`git clone ${pkg.repo} ${pkgDir}/src/${pkg.name}`);

// Check if git commit message contains GIT_SILENT
const gitLog = exec(`git -C ${pkgDir}/src/${pkg.name} log -1 --pretty=%B`, false).toString().trim();
if (gitLog.includes("GIT_SILENT")) {
console.log("📦 -> GIT_SILENT found, skipping");
return;
}

buildStep = `build-${pkg.name}-pre-patch`;
// copy patches/extra files from aports to src
Expand Down

0 comments on commit 0b1535d

Please sign in to comment.