fixed broken updown logic

This commit is contained in:
Penelope Gwen 2024-03-31 19:51:36 -06:00
parent c4f13c800c
commit ab1e7d9bf2

View file

@ -10,7 +10,7 @@ gs="$(git status | grep -i 'modified')"
git fetch origin git fetch origin
reslog=$(git log HEAD..origin/main --oneline) reslog=$(git log HEAD..origin/main --oneline)
if [[ "${gs}" == *"modified"* && "${reslog}" == "" ]];then if [[ "${gs}" == *"modified"* && "${reslog}" != "" ]];then
#local AND remote changes exist #local AND remote changes exist
echo "local backup reposity conflict with remote - please manually fix this!" echo "local backup reposity conflict with remote - please manually fix this!"
exit 1 exit 1