fix: handle pathing for autojump
This commit is contained in:
parent
a7405831fd
commit
2368350d97
@ -131,10 +131,11 @@ install-cargo-binary() {
|
||||
|
||||
install-autojump() {
|
||||
local install_path="${1}/autojump"
|
||||
git clone "https://github.com/wting/autojump.git" "${install_path}" || return 1
|
||||
cd "$(mktemp -d)"
|
||||
git clone "https://github.com/wting/autojump.git" "autojump" || return 1
|
||||
(
|
||||
cd "${install_path}"
|
||||
python3 "install.py"
|
||||
cd "autojump"
|
||||
python3 "install.py" -d "${install_path}"
|
||||
) || return 1
|
||||
|
||||
}
|
||||
@ -301,7 +302,7 @@ main() {
|
||||
print-break
|
||||
|
||||
log "info" "Installing ${GREEN}autojump${RESET_BOLD}"
|
||||
if ! install-autojump; then
|
||||
if ! install-autojump "${DEPS_PATH}"; then
|
||||
log "error" "Failed to install ${GREEN}autojump${RESET_BOLD}"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user