Skip to content

Commit

Permalink
output
Browse files Browse the repository at this point in the history
  • Loading branch information
ijara committed Nov 13, 2024
1 parent b16172c commit c524820
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
#!/bin/sh
echo "Iniciando sincronización..."
git pull
echo "Activando entorno virtual..."
echo "Iniciando sincronización..." >> output.txt
date >> output.txt
git pull >> output.txt 2>&1
echo "Activando entorno virtual..." >> output.txt
source .venv/bin/activate
echo "Ejecutando main.py..."
python main.py
if [ $? -eq 1 ]; then
echo "Agregando cambios..."
git add .
echo "Commit de cambios..."
git commit -m "sync_$(date +%Y%m%d)"
echo "Enviando cambios..."
git push
echo "Sincronización completada."
fi
echo "Ejecutando main.py..." >> output.txt
python main.py >> output.txt 2>&1
echo "Agregando cambios..." >> output.txt
git add . >> output.txt 2>&1
echo "Commit de cambios..." >> output.txt
git commit -m "sync_$(date +%Y%m%d)" >> output.txt 2>&1
echo "Enviando cambios..." >> output.txt
git push >> output.txt 2>&1
echo "Sincronización completada." >> output.txt

0 comments on commit c524820

Please sign in to comment.