From bcaffe612c029693989b819bb120752391d8607c Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Thu, 14 Dec 2023 15:07:11 +0100 Subject: [PATCH] fixed move function in deploy.sh --- deploy.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 6ed4985..3240edf 100755 --- a/deploy.sh +++ b/deploy.sh @@ -63,7 +63,7 @@ _bashrc_ref() { _move() { _delete - _bashrc_ref + _bashrc_ref "${FANCYFY}" } _main() { @@ -73,9 +73,17 @@ _main() { _delete echo "removed custom configs" elif [ "${MOVE}" = true ]; then - _move - echo "moved custom config directory to ${THIS}" - echo + if [ "${PRESENT}" = false ]; then + _bashrc_ref "${FANCYFY}" + echo "unable to move to current directory" + echo "bash overrides not previously present" + echo "adding bash overrides..." + echo + else + _move + echo "moved custom config directory to ${THIS}" + echo + fi elif [ "${PRESENT}" = true ]; then if [ "${CURRENT_FANCYFY}" != "${FANCYFY}" ]; then sed -i "s/TERMINAL_FANCYFY=${CURRENT_FANCYFY}/TERMINAL_FANCYFY=${FANCYFY}/" ~/.bashrc