From 68d972c812fe61218b643eb2d8f2e1881953ed36 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Sun, 1 Jan 2023 22:54:07 +0500 Subject: [PATCH] Do not whine about complete failure when it is not. --- mirror.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mirror.sh b/mirror.sh index 3a201c9..7f880b5 100755 --- a/mirror.sh +++ b/mirror.sh @@ -113,7 +113,10 @@ function mirror() { if ! get_image "${image}" "amd64"; then exitcode=$? - echo "! Image mirroring failed! Cannot obtain amd64 image!" + # Shit happened. + if [ ${exitcode} -eq 1 ]; then + echo "! Image mirroring failed! Cannot obtain amd64 image!" + fi return ${exitcode} fi