Skip to content

Commit

Permalink
Merge pull request #797 from yuta100101/fix/install
Browse files Browse the repository at this point in the history
Fix install script
  • Loading branch information
denisidoro committed Oct 17, 2022
2 parents 69075b7 + 1823e19 commit 8373da2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install
Original file line number Diff line number Diff line change
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 8373da2

Please sign in to comment.