Actualización

This commit is contained in:
perro tuerto 2023-06-18 09:06:17 -07:00
parent e30147003f
commit cc87e9d501
1 changed files with 10 additions and 9 deletions

View File

@ -235,19 +235,20 @@ aliases () {
fi
;;
empujar | push)
if [ -f "$OZSH_ALIAS" ]; then
if [ ! -L "$OZSH_ALIAS" ]; then
if [ -f "$RLOC_ALIAS" ]; then
if [ -f "$OZSH_ALIAS" ] &&[ ! -L "$OZSH_ALIAS" ]; then
cp -u $OZSH_ALIAS $RLOC_ALIAS
fi
else
if [ ! -L "$OZSH_ALIAS" ]; then
elif [ -f "$BASH_ALIAS" ] && [ ! -L "$BASH_ALIAS" ]; then
cp -u $BASH_ALIAS $RLOC_ALIAS
fi
git -C $(parent $RLOC_ALIAS) add .
git -C $(parent $RLOC_ALIAS) commit -m "Actualización"
git -C $(parent $RLOC_ALIAS) p
recargar
else
echo "ERROR: No se pudo empujar al repositorio; no existe el archivo '$RLOC_ALIAS'"
exit 1
fi
git -C $(parent $RLOC_ALIAS) add .
git -C $(parent $RLOC_ALIAS) commit -m "Actualización"
git -C $(parent $RLOC_ALIAS) pushall
recargar
;;
enlazar | link)
if [ -f "$RLOC_ALIAS" ]; then