summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-11 10:08:26 +0100
committerErich Eckner <git@eckner.net>2018-01-11 10:08:26 +0100
commit02fb70ff1a82886f9e22dcb3790d4ea585e36f0b (patch)
tree47d04d94576196e233145f3014ddad97f0f9d53f /bin/return-assignment
parent8ec4ef868a0ff4cdf274d4f41bab145fa90a0db7 (diff)
downloadbuilder-02fb70ff1a82886f9e22dcb3790d4ea585e36f0b.tar.xz
bin/return-assignment: clean up inverse logic
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index b8c6cca..5b26ef6 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -67,10 +67,10 @@ if [ "$5" = 'ERROR' ]; then
--transform="s|^|$1.$2.$3.$4.|" \
'*.build-log.gz'
- if [ ! -f "${work_dir}/package-states/$1.$2.$3.$4.broken" ]; then
- was_broken_before=false
- else
+ if [ -f "${work_dir}/package-states/$1.$2.$3.$4.broken" ]; then
was_broken_before=true
+ else
+ was_broken_before=false
fi
# shellcheck disable=SC2154