Merge pull request #797 from yuta100101/fix/install

Fix install script
This commit is contained in:
Denis Isidoro 2022-10-17 08:26:05 +03:00 committed by GitHub
commit 8373da2166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,10 +279,10 @@ install_navi() {
log::success "navi is now available at ${navi_bin_path}" log::success "navi is now available at ${navi_bin_path}"
echoerr echoerr
if echo "$PATH" | grep -q "$navi_bin_path"; then if echo "$PATH" | grep -q "$navi_bin_dir"; then
: :
else 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 "${HOME}/.bashrc" "$cmd"
append_to_file "${ZDOTDIR:-"$HOME"}/.zshrc" "$cmd" append_to_file "${ZDOTDIR:-"$HOME"}/.zshrc" "$cmd"
append_to_file "${HOME}/.fishrc" "$cmd" append_to_file "${HOME}/.fishrc" "$cmd"
@ -292,7 +292,7 @@ install_navi() {
echo echo
log::note "Check https://github.com/denisidoro/navi for more info" 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 return 0
} }