fixed broken updown logic
This commit is contained in:
parent
c4f13c800c
commit
ab1e7d9bf2
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ gs="$(git status | grep -i 'modified')"
|
|||
git fetch origin
|
||||
reslog=$(git log HEAD..origin/main --oneline)
|
||||
|
||||
if [[ "${gs}" == *"modified"* && "${reslog}" == "" ]];then
|
||||
if [[ "${gs}" == *"modified"* && "${reslog}" != "" ]];then
|
||||
#local AND remote changes exist
|
||||
echo "local backup reposity conflict with remote - please manually fix this!"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue