Fix task synchronization

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-06-24 20:36:11 +02:00
parent ee2af96dfd
commit cd607f0c79
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
4 changed files with 15 additions and 21 deletions

View file

@ -26,12 +26,8 @@ if [ "${IS_WORK}" = "1" ]; then
export GIT_SSH_COMMAND="ssh -i /home/severin/.ssh/severin_id_rsa"
fi
task sync
if [ "${IS_WORK}" = "0" ]; then
cd "/home/severin/tasks" || exit
git pull
git add --all
git commit -s -m "Update tasks"
git push origin master
fi
cd "/home/severin/tasks" || exit
git pull
git add --all
git commit -s -m "Update tasks"
git push origin master