mirror of
https://github.com/denisidoro/navi
synced 2025-02-16 20:48:28 +00:00
Fix "navi best" command (#162)
This commit is contained in:
parent
a36304dca4
commit
1c2dca3284
2 changed files with 2 additions and 3 deletions
2
navi
2
navi
|
@ -4,7 +4,7 @@ set -euo pipefail
|
||||||
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
|
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
|
||||||
source "${NAVI_HOME}/src/main.sh"
|
source "${NAVI_HOME}/src/main.sh"
|
||||||
|
|
||||||
VERSION="0.15.3"
|
VERSION="0.15.4"
|
||||||
NAVI_ENV="${NAVI_ENV:-prod}"
|
NAVI_ENV="${NAVI_ENV:-prod}"
|
||||||
|
|
||||||
opts::eval "$@"
|
opts::eval "$@"
|
||||||
|
|
|
@ -56,8 +56,7 @@ ui::select() {
|
||||||
local -r key="$(echo "$result" | head -n1)"
|
local -r key="$(echo "$result" | head -n1)"
|
||||||
|
|
||||||
echo "$result" \
|
echo "$result" \
|
||||||
| tail -n +2 \
|
| ($best && head -n1 || tail -n +2) \
|
||||||
| ($best && head -n1 || cat) \
|
|
||||||
| selection::dict "$cheats" "$key"
|
| selection::dict "$cheats" "$key"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue