From 58895d5f30af278a35b9d08c4a085842d2e0c570 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 30 Jul 2022 22:27:28 -0500 Subject: [PATCH] feat: use softlink for zsh configs --- install.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.bash b/install.bash index 2fbab4e..228a044 100644 --- a/install.bash +++ b/install.bash @@ -158,9 +158,9 @@ deploy-config() { continue fi - log "info" "Copying ${GREEN}${install_key}${RESET_BOLD}, ${GREEN}${src_path}${RESET_BOLD} to ${GREEN}${dest_path}${RESET_BOLD}" - if ! cp -r "${src_path}" "${dest_path}"; then - log "error" "Failed copying ${GREEN}${install_key}${RESET_BOLD}, ${GREEN}${src_path}${RESET_BOLD} to ${GREEN}${dest_path}${RESET_BOLD}" + log "info" "Linking ${GREEN}${install_key}${RESET_BOLD}, ${GREEN}${src_path}${RESET_BOLD} to ${GREEN}${dest_path}${RESET_BOLD}" + if ! ln -s "${src_path}" "${dest_path}"; then + log "error" "Failed linking ${GREEN}${install_key}${RESET_BOLD}, ${GREEN}${src_path}${RESET_BOLD} to ${GREEN}${dest_path}${RESET_BOLD}" return 1 fi done