no-yolo-commits 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-yolo-commits",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "AI pre-commit review (via the claude CLI) + a guard that auto-branches you off main/master instead of letting a direct commit land there.",
5
5
  "keywords": [
6
6
  "husky",
@@ -57,8 +57,7 @@ Do NOT flag stylistic preferences. Do NOT flag pre-existing patterns already use
57
57
  } catch (e) {
58
58
  process.exit(2)
59
59
  }
60
- ' "$review_tmpfile"
61
- review_status=$?
60
+ ' "$review_tmpfile" && review_status=0 || review_status=$?
62
61
  rm -f "$review_tmpfile" 2>/dev/null || true
63
62
 
64
63
  if [ "$review_status" = "1" ]; then