From 54cc75aa837a64e228d1a5d368306bf9ce5aad26 Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Sat, 14 Aug 2021 21:36:27 +0800 Subject: [PATCH] Warning with sleep --- debi.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debi.sh b/debi.sh index 676af1f..15974f0 100755 --- a/debi.sh +++ b/debi.sh @@ -142,8 +142,9 @@ has_cloud_kernel() { esac local tmp; tmp=''; [ "$bpo_kernel" = true ] && tmp='-backports' - echo "Warning: No cloud kernel is available for $architecture/$suite$tmp." 1>&2 - + echo "Warning: No cloud kernel is available for $architecture/$suite$tmp.\n\n...Continuing with the default." 1>&2 + sleep 5 + return 1 } @@ -152,7 +153,8 @@ has_backports() { stretch|oldstable|buster|stable|bullseye|testing) return esac - echo "Warning: No backports kernel is available for $suite." 1>&2 + echo "Warning: No backports kernel is available for $suite.\n\n...Continuing with the default." 1>&2 + sleep 5 return 1 }