diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-11-13 13:39:33 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-11-13 13:39:33 +1300 |
commit | f8091be9edc196268a374bbcdc9d382ae1efb99f (patch) | |
tree | 36841312c66e46f862bac192ba515f5826ff7048 | |
parent | Completion for vis(1) (diff) | |
download | dotfiles-f8091be9edc196268a374bbcdc9d382ae1efb99f.tar.gz dotfiles-f8091be9edc196268a374bbcdc9d382ae1efb99f.zip |
Where did these tabs come from?
-rwxr-xr-x | bin/vis | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -14,18 +14,18 @@ self=vis # Define a function to show usage usage() { - printf '%s: usage: %s [EDITOR_OPTS] [--] FILE1 [FILE2...]\n' \ - "$self" "$self" + printf '%s: usage: %s [EDITOR_OPTS] [--] FILE1 [FILE2...]\n' \ + "$self" "$self" } # Process options, including detecting requests for help declare -a opts for arg ; do case $arg in - --help|-h|-\?) - usage - exit 0 - ;; + --help|-h|-\?) + usage + exit 0 + ;; --) shift break @@ -42,14 +42,14 @@ done # If no arguments left, spit usage as an error and bail if ! (($#)) ; then - usage >&2 - exit 1 + usage >&2 + exit 1 fi # Create the script directory if it doesn't exist yet vispath=${VISPATH:-$HOME/.local/bin} if [[ ! -d $vispath ]] ; then - mkdir -p -- "$vispath" || exit + mkdir -p -- "$vispath" || exit fi # Create a new array with the script directory prepended to the given names |