Fix "navi best" command (#162)

This commit is contained in:
Denis Isidoro 2019-12-05 14:37:08 -03:00 committed by GitHub
parent a36304dca4
commit 1c2dca3284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

2
navi
View file

@ -4,7 +4,7 @@ set -euo pipefail
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
source "${NAVI_HOME}/src/main.sh"
VERSION="0.15.3"
VERSION="0.15.4"
NAVI_ENV="${NAVI_ENV:-prod}"
opts::eval "$@"

View file

@ -56,8 +56,7 @@ ui::select() {
local -r key="$(echo "$result" | head -n1)"
echo "$result" \
| tail -n +2 \
| ($best && head -n1 || cat) \
| ($best && head -n1 || tail -n +2) \
| selection::dict "$cheats" "$key"
}