diff --git a/common/bin/install b/common/bin/install deleted file mode 100755 index cda83c31..00000000 --- a/common/bin/install +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -ROOT="$(realpath "$(dirname "$0")")" -SCRIPT_NAME=$(basename "$0") - -for bin_path in "${ROOT}"/*; do - bin=$(basename "${bin_path}") - if [[ "${bin}" = "${SCRIPT_NAME}" ]]; then - continue - fi - - chmod +x "${bin_path}" - rm -f ~/.local/bin/"${bin}" >/dev/null 2>&1 - ln -sf "$(realpath "${bin_path}")" ~/.local/bin/"${bin}" -done diff --git a/common/install b/common/install index 5962d279..976147f1 100644 --- a/common/install +++ b/common/install @@ -44,8 +44,13 @@ fi describe "Creating symlinks for bin files" -chmod +x "${DOTFILES_DIR}"/bin/install -"${DOTFILES_DIR}"/bin/install +for bin_path in "${DOTFILES_DIR}"/bin/*; do + bin=$(basename "${bin_path}") + + chmod +x "${bin_path}" + rm -f ~/.local/bin/"${bin}" >/dev/null 2>&1 + ln -sf "$(realpath "${bin_path}")" ~/.local/bin/"${bin}" +done echo -e "${GREEN}Done${RESET}"