From f6f274272f57bb7a0b41a6a0e0efd2ed6ef791be Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 9 Jun 2013 06:26:08 +0200 Subject: [PATCH] [scripts] iso_build.sh: fix if condition after flock --- scripts/iso_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/iso_build.sh b/scripts/iso_build.sh index 97c400c..4414ed3 100755 --- a/scripts/iso_build.sh +++ b/scripts/iso_build.sh @@ -421,7 +421,7 @@ build_sabayon() { if [ ${#arm_source_specs[@]} != 0 ]; then ( flock --timeout $((24 * 3600)) -x 9 - if [ "${?}" = "0" ]; then + if [ "${?}" != "0" ]; then echo "Timed out during arm_source_specs lock contention" >&2 exit 1 fi @@ -433,7 +433,7 @@ build_sabayon() { if [ ${#source_specs[@]} != 0 ]; then ( flock --timeout $((24 * 3600)) -x 9 - if [ "${?}" = "0" ]; then + if [ "${?}" != "0" ]; then echo "Timed out during source_specs lock contention" >&2 exit 1 fi