1
0
mirror of https://github.com/wting/autojump synced 2025-06-13 12:54:07 +00:00

Fix --dry-run not defaulting to --auto

Using --dry-run alone wouldn't default to --auto and therefore show different
paths that what would actually be used upon installation.
This commit is contained in:
jjacky 2012-11-23 10:42:02 +01:00
parent d0e0a990ce
commit bcb7ffeaf5

View File

@ -41,6 +41,11 @@ if [[ ${#} == 0 ]]; then
set -- "--auto"
fi
# Only dry-run should also default to --auto
if [[ ${#} == 1 ]] && ([[ $1 = "-n" ]] || [[ $1 = "--dry-run" ]]); then
set -- "-n" "--auto"
fi
# Command line parsing
while true; do
case "$1" in