summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-03-07 13:17:42 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-03-07 13:17:42 (EST)
commite63b0adeb5bc4e2d8445615abd64d8769b8b95cd (patch)
tree53d15772687bd0d61e86d09ba4e095521e3f5022 /bin
parent4574533fb6621d126a92313c1c110e0141b6cdc0 (diff)
downloadmr-e63b0adeb5bc4e2d8445615abd64d8769b8b95cd.zip
mr-e63b0adeb5bc4e2d8445615abd64d8769b8b95cd.tar.gz
mr-e63b0adeb5bc4e2d8445615abd64d8769b8b95cd.tar.bz2
dfmk: Fix Git status check
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dfmk10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/dfmk b/bin/dfmk
index 5588c84..3502516 100755
--- a/bin/dfmk
+++ b/bin/dfmk
@@ -7,12 +7,12 @@ if [ ${#} -eq 0 ]; then
exit 1
fi
-for repo in "${@}"; do
- if ! [ "x$(vcsh "${repo}" status --porcelain | wc -l)" = 'x0' ]; then
- printf 'Error: Repository %s has uncommited changes\n' "${repo}"
- continue
- fi
+if ! [ "x$(vcsh mr status --porcelain | wc -l)" = 'x0' ]; then
+ printf 'Error: mr repository has uncommited changes\n'
+ exit 1
+fi
+for repo in "${@}"; do
# Initialize repository
vcsh init "${repo}"
vcsh "${repo}" remote add origin "$(printf "${REPO_FMT}" "${repo}")"