Skip to content

Commit

Permalink
Fix install script
Browse files Browse the repository at this point in the history
  • Loading branch information
yuta100101 committed Oct 9, 2022
1 parent 69075b7 commit 1823e19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install
Expand Up @@ -279,10 +279,10 @@ install_navi() {
log::success "navi is now available at ${navi_bin_path}"
echoerr

if echo "$PATH" | grep -q "$navi_bin_path"; then
if echo "$PATH" | grep -q "$navi_bin_dir"; then
:
else
local -r cmd="$(export_path_cmd "$navi_bin_path")"
local -r cmd="$(export_path_cmd "$navi_bin_dir")"
append_to_file "${HOME}/.bashrc" "$cmd"
append_to_file "${ZDOTDIR:-"$HOME"}/.zshrc" "$cmd"
append_to_file "${HOME}/.fishrc" "$cmd"
Expand All @@ -292,7 +292,7 @@ install_navi() {
echo
log::note "Check https://github.com/denisidoro/navi for more info"

export PATH="${PATH}:${navi_bin_path}"
export PATH="${PATH}:${navi_bin_dir}"

return 0
}
Expand Down

0 comments on commit 1823e19

Please sign in to comment.