ソースを参照

Warning with sleep

Bohan Yang 4 年 前
コミット
54cc75aa83
1 ファイル変更5 行追加3 行削除
  1. 5 3
      debi.sh

+ 5 - 3
debi.sh

@@ -142,8 +142,9 @@ has_cloud_kernel() {
     esac
     esac
 
 
     local tmp; tmp=''; [ "$bpo_kernel" = true ] && tmp='-backports'
     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
     return 1
 }
 }
 
 
@@ -152,7 +153,8 @@ has_backports() {
         stretch|oldstable|buster|stable|bullseye|testing) return
         stretch|oldstable|buster|stable|bullseye|testing) return
     esac
     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
     return 1
 }
 }