From 5571ad218d5784506c743f720b84a57bc9e944e0 Mon Sep 17 00:00:00 2001 From: perro Date: Mon, 12 Jun 2023 09:47:49 -0700 Subject: [PATCH] =?UTF-8?q?Actualizaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aliases.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aliases.sh b/aliases.sh index 226543e..e88da52 100644 --- a/aliases.sh +++ b/aliases.sh @@ -236,9 +236,13 @@ aliases () { ;; guardar | save) if [ -f "$OZSH_ALIAS" ]; then - cp -u $OZSH_ALIAS $RLOC_ALIAS + if [ ! -L "$OZSH_ALIAS" ]; then + cp -u $OZSH_ALIAS $RLOC_ALIAS + fi else - cp -u $BASH_ALIAS $RLOC_ALIAS + if [ ! -L "$OZSH_ALIAS" ]; then + cp -u $BASH_ALIAS $RLOC_ALIAS + fi fi git -C $(parent $RLOC_ALIAS) add . git -C $(parent $RLOC_ALIAS) commit -m "ActualizaciĆ³n"