Skip to content

Commit

Permalink
Fix ush::patch logic.
Browse files Browse the repository at this point in the history
It was a little wrong.
  • Loading branch information
JeffFaer committed Nov 21, 2021
1 parent e974997 commit 94d10b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usg
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ usg::patch(){
local ret
patch=$(usg::diff "${old}")
ret=$?
if [[ "${ret}" == 1 || ("${ret}" == 0 && -z "${patch}") ]]; then
die "${old} appears to be the same as what's currently uploadedto the USG. There's nothing to do!"
if [[ ("${ret}" == 0 && -z "${patch}") ]]; then
die "${old} appears to be the same as what's currently uploaded to the USG. There's nothing to do!"
fi
if [[ "${ret}" != 0 ]]; then
if [[ "${ret}" != 1 ]]; then
die "diffing failed."
fi

Expand Down

0 comments on commit 94d10b9

Please sign in to comment.