1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Set default installation to auto if only --force flag is passed.

This commit is contained in:
William Ting 2012-11-22 14:45:10 -06:00
parent de0957ba18
commit 626946bccc

View File

@ -29,7 +29,6 @@ function help_msg {
} }
dry_run= dry_run=
auto=
local= local=
force= force=
shell=`echo ${SHELL} | awk -F/ '{ print $NF }'` shell=`echo ${SHELL} | awk -F/ '{ print $NF }'`
@ -62,6 +61,9 @@ while true; do
-f|--force) -f|--force)
force=true force=true
shift shift
if [[ ${#} == 0 ]]; then
set -- "--auto"
fi
;; ;;
-g|--global) -g|--global)
destdir= destdir=