projects
/
dotfiles-framework.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dotfiles.sh: space/tab indentation cleanups
[dotfiles-framework.git]
/
dotfiles.sh
diff --git
a/dotfiles.sh
b/dotfiles.sh
index 39574b2591a117563f2ef9171c97e1f24fa222f7..f499ee9b967e2b686ba55cc247dc82dd57c26266 100755
(executable)
--- 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
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
if [ "${REPO}" = '*' ]; then
break # no known repositories
elif [ -f "${REPO}" ]; then
@@
-414,7
+414,7
@@
function diff()
'--removed')
MODE='removed'
;;
'--removed')
MODE='removed'
;;
- '--local-patch')
+ '--local-patch')
MODE='local-patch'
;;
*)
MODE='local-patch'
;;
*)
@@
-795,8
+795,8
@@
function main()
echo "${VERSION}"
return
;;
echo "${VERSION}"
return
;;
- '--dotfiles-dir')
-
DOTFILES_DIR="${2}"
+ '--dotfiles-dir')
+ DOTFILES_DIR="${2}"
shift
;;
'--target')
shift
;;
'--target')
@@
-825,10
+825,10
@@
function main()
shift
done
if [ "${#}" -eq 0 ]; then
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
else
maxargs "${0}" 1 "${@}" || return 1
- "${COMMAND}" "${OPTIONS[@]}" "${1}" || return 1
+ "${COMMAND}" "${OPTIONS[@]}" "${1}" || return 1
fi
fi
}
fi
fi
}