Actualización
This commit is contained in:
parent
e30147003f
commit
cc87e9d501
19
aliases.sh
19
aliases.sh
|
@ -235,19 +235,20 @@ aliases () {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
empujar | push)
|
empujar | push)
|
||||||
if [ -f "$OZSH_ALIAS" ]; then
|
if [ -f "$RLOC_ALIAS" ]; then
|
||||||
if [ ! -L "$OZSH_ALIAS" ]; then
|
if [ -f "$OZSH_ALIAS" ] &&[ ! -L "$OZSH_ALIAS" ]; then
|
||||||
cp -u $OZSH_ALIAS $RLOC_ALIAS
|
cp -u $OZSH_ALIAS $RLOC_ALIAS
|
||||||
fi
|
elif [ -f "$BASH_ALIAS" ] && [ ! -L "$BASH_ALIAS" ]; then
|
||||||
else
|
|
||||||
if [ ! -L "$OZSH_ALIAS" ]; then
|
|
||||||
cp -u $BASH_ALIAS $RLOC_ALIAS
|
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) p
|
||||||
|
recargar
|
||||||
|
else
|
||||||
|
echo "ERROR: No se pudo empujar al repositorio; no existe el archivo '$RLOC_ALIAS'"
|
||||||
|
exit 1
|
||||||
fi
|
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)
|
enlazar | link)
|
||||||
if [ -f "$RLOC_ALIAS" ]; then
|
if [ -f "$RLOC_ALIAS" ]; then
|
||||||
|
|
Loading…
Reference in New Issue