From 02fb70ff1a82886f9e22dcb3790d4ea585e36f0b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 11 Jan 2018 10:08:26 +0100 Subject: bin/return-assignment: clean up inverse logic --- bin/return-assignment | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2