ORESoftware / r2g

▷ Test your package in the published format, without having to publish to NPM.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should check for dirty git status and dirty git index as part of r2g test and r2g publish

ORESoftware opened this issue · comments

Use these:

if  ! git diff --quiet; then
   echo 'Changes to files need to be committed. Check your git index.';
   exit 1;
fi

if  test `git status --porcelain | wc -l` != '0'; then
   echo 'Changes to (untracked) files need to be committed. Check your git index.';
   exit 1;
fi