Add mkdir if needed calls to rg install script

main
Buddy Sandidge 2 years ago
parent 8ce19953de
commit 16cf22eddf

@ -18,6 +18,9 @@ URL=https://github.com/BurntSushi/ripgrep/releases/download/${VERSION}/ripgrep-$
extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-component 1" extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-component 1"
set_current_link "${DEST}" "${VERSION}" set_current_link "${DEST}" "${VERSION}"
mkdir_if_missing "${XDG_CONFIG_HOME}/bash/bashrc.d"
mkdir_if_missing "${XDG_CONFIG_HOME}/fish/completions"
set_link "${XDG_BIN_HOME}/rg" "${DEST}" rg set_link "${XDG_BIN_HOME}/rg" "${DEST}" rg
set_link "${MAN_DIR}/rg.1" "${DEST}" doc/rg.1 set_link "${MAN_DIR}/rg.1" "${DEST}" doc/rg.1
set_link "${XDG_CONFIG_HOME}/bash/bashrc.d/ripgrep.sh" "${DEST}" complete/rg.bash set_link "${XDG_CONFIG_HOME}/bash/bashrc.d/ripgrep.sh" "${DEST}" complete/rg.bash

Loading…
Cancel
Save