X-Git-Url: http://git.tremily.us/?p=dotfiles-framework.git;a=blobdiff_plain;f=dotfiles.sh;fp=dotfiles.sh;h=f499ee9b967e2b686ba55cc247dc82dd57c26266;hp=39574b2591a117563f2ef9171c97e1f24fa222f7;hb=bd1838e78ae69ca634e7067419439893b0b73180;hpb=5c9f6663d1bdf3b773a7f5160b9523e7ec7a351e diff --git a/dotfiles.sh b/dotfiles.sh index 39574b2..f499ee9 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -106,7 +106,7 @@ function run_on_all_repos() COMMAND="${1}" shift if [ -z "${REPO}" ]; then # run on all repositories - for REPO in *; do + for REPO in *; do if [ "${REPO}" = '*' ]; then break # no known repositories elif [ -f "${REPO}" ]; then @@ -414,7 +414,7 @@ function diff() '--removed') MODE='removed' ;; - '--local-patch') + '--local-patch') MODE='local-patch' ;; *) @@ -795,8 +795,8 @@ function main() echo "${VERSION}" return ;; - '--dotfiles-dir') - DOTFILES_DIR="${2}" + '--dotfiles-dir') + DOTFILES_DIR="${2}" shift ;; '--target') @@ -825,10 +825,10 @@ function main() shift done if [ "${#}" -eq 0 ]; then - run_on_all_repos "${COMMAND}" "${OPTIONS[@]}" || return 1 + run_on_all_repos "${COMMAND}" "${OPTIONS[@]}" || return 1 else maxargs "${0}" 1 "${@}" || return 1 - "${COMMAND}" "${OPTIONS[@]}" "${1}" || return 1 + "${COMMAND}" "${OPTIONS[@]}" "${1}" || return 1 fi fi }