More indentation fixups. I think everything's just tabs now.
authorW. Trevor King <wking@drexel.edu>
Wed, 30 Nov 2011 17:31:54 +0000 (12:31 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 30 Nov 2011 17:31:54 +0000 (12:31 -0500)
dotfiles.sh

index d9a6876a71dc76e14822ea2465e54fc19eb5d07c..4734bc34f83b5c8933b36299724650f81d4e536a 100755 (executable)
@@ -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