Skip to content

Commit

Permalink
fix: 🐛 moving fix to commit, not push
Browse files Browse the repository at this point in the history
  • Loading branch information
auguster committed Oct 13, 2023
1 parent 997c1eb commit 5583ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ esac

echo "commiting file to Git"
git add backup.sql
git commit -m "$(date)"
git diff-index --quiet HEAD || git commit -m "$(date)"

echo "sending files to upstream"
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git diff-index --quiet HEAD || git push --set-upstream origin main
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git push --set-upstream origin main

echo "backup done on $(date)"

0 comments on commit 5583ce5

Please sign in to comment.