Skip to content

Commit

Permalink
fix(generators/app/templates): ensure git hooks don't error-exit when…
Browse files Browse the repository at this point in the history
… there's nothing to do

Prevents `"Could not detach HEAD"` errors on interactive rebases.
  • Loading branch information
cueedee committed Oct 20, 2017
1 parent b78c926 commit 3fd33d7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ function changed
echo "${changed_files}" | grep --quiet "${1}"
}

changed package-lock.json && npm run refresh
if changed package-lock.json ; then
npm run refresh
fi

0 comments on commit 3fd33d7

Please sign in to comment.