Actualización
This commit is contained in:
parent
e30147003f
commit
cc87e9d501
15
aliases.sh
15
aliases.sh
|
@ -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
|
||||
fi
|
||||
git -C $(parent $RLOC_ALIAS) add .
|
||||
git -C $(parent $RLOC_ALIAS) commit -m "Actualización"
|
||||
git -C $(parent $RLOC_ALIAS) pushall
|
||||
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
|
||||
;;
|
||||
enlazar | link)
|
||||
if [ -f "$RLOC_ALIAS" ]; then
|
||||
|
|
Loading…
Reference in New Issue