From c52482057b19bf0ec600ed19643464f5efcba6bc Mon Sep 17 00:00:00 2001 From: Ignacio Jara Date: Tue, 12 Nov 2024 22:42:08 -0300 Subject: [PATCH] output --- run.sh | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/run.sh b/run.sh index 0138193..0530b1b 100755 --- a/run.sh +++ b/run.sh @@ -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