diff --git a/install.bash b/install.bash index ed8b1d9..680b20c 100644 --- a/install.bash +++ b/install.bash @@ -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