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:
parent
de0957ba18
commit
626946bccc
@ -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=
|
||||||
|
Loading…
Reference in New Issue
Block a user