From e63b0adeb5bc4e2d8445615abd64d8769b8b95cd Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 07 Mar 2016 13:17:42 -0500 Subject: dfmk: Fix Git status check --- 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}")" -- cgit v0.9.1