From: W. Trevor King Date: Wed, 30 Nov 2011 17:31:54 +0000 (-0500) Subject: More indentation fixups. I think everything's just tabs now. X-Git-Tag: v0.3~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1b6de8f4994c992874202fdcd7f50267c440a39b;p=dotfiles-framework.git More indentation fixups. I think everything's just tabs now. --- diff --git a/dotfiles.sh b/dotfiles.sh index d9a6876..4734bc3 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -350,16 +350,16 @@ function diff() MODE='standard' while [ "${1::2}" = '--' ]; do case "${1}" in - '--removed') - MODE='removed' - ;; + '--removed') + MODE='removed' + ;; '--local-patch') - MODE='local-patch' - ;; - *) - echo "ERROR: invalid option to diff (${1})" >&2 - return 1 - esac + MODE='local-patch' + ;; + *) + echo "ERROR: invalid option to diff (${1})" >&2 + return 1 + esac shift done # multi-repo case handled in main() by run_on_all_repos() @@ -484,23 +484,23 @@ function link() DRY_RUN='no' # If 'yes', disable any actions that change the filesystem BACKUP='yes' while [ "${1::2}" = '--' ]; do - case "${1}" in - '--force') - FORCE='yes' - ;; - '--force-file') - FORCE='file' - ;; - '--dry-run') - DRY_RUN='yes' - ;; - '--no-backup') - BACKUP='no' - ;; - *) - echo "ERROR: invalid option to link (${1})" >&2 - return 1 - esac + case "${1}" in + '--force') + FORCE='yes' + ;; + '--force-file') + FORCE='file' + ;; + '--dry-run') + DRY_RUN='yes' + ;; + '--no-backup') + BACKUP='no' + ;; + *) + echo "ERROR: invalid option to link (${1})" >&2 + return 1 + esac shift done # multi-repo case handled in main() by run_on_all_repos() @@ -690,27 +690,27 @@ function main() { COMMAND='' while [ "${1::2}" = '--' ]; do - case "${1}" in - '--help') - main_help || return 1 - return - ;; - '--version') - echo "${VERSION}" - return - ;; - '--dotfiles-dir') - DOTFILES_DIR="${2}" - shift - ;; - '--target') - TARGET="${2}" - shift - ;; - *) - echo "ERROR: invalid option to ${0} (${1})" >&2 - return 1 - esac + case "${1}" in + '--help') + main_help || return 1 + return + ;; + '--version') + echo "${VERSION}" + return + ;; + '--dotfiles-dir') + DOTFILES_DIR="${2}" + shift + ;; + '--target') + TARGET="${2}" + shift + ;; + *) + echo "ERROR: invalid option to ${0} (${1})" >&2 + return 1 + esac shift done COMMAND=$(get_selection "${1}" "${COMMANDS[@]}") || return 1