Skip to content

Commit

Permalink
Updated bin install
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Jun 11, 2023
1 parent 9ddcb90 commit 2351a49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
15 changes: 0 additions & 15 deletions common/bin/install

This file was deleted.

9 changes: 7 additions & 2 deletions common/install
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 2351a49

Please sign in to comment.