Skip to content

Commit 93be945

Browse files
committed
Updated is-clean script Resolved #164
1 parent 0ca081e commit 93be945

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

is-clean.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
if output=$(git status --porcelain) && [ -z "$output" ]; then echo "Success!"; else (echo ">>> Please check CONTRIBUTING.md to learn how to properly amend README.md <<<\n" && false); fi

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"contributors:check": "all-contributors check",
1313
"contributors:add": "all-contributors add",
1414
"contributors:generate": "all-contributors generate",
15-
"is-clean": "if output=$(git status --porcelain) && [ -z \"$output\" ]; then echo 'Success!'; else (echo '>>> Please check CONTRIBUTING.md to learn how to properly amend README.md <<<' && false); fi"
15+
"is-clean": "sh ./is-clean.sh"
1616
},
1717
"husky": {
1818
"hooks": {

0 commit comments

Comments
 (0)