From bc9668bc3e337bffcd2f6ca6a2c6883c8bfe6db5 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Wed, 24 Jan 2024 09:48:24 +0800 Subject: [PATCH] fix: change expect option to y --- misc/actpkg.sh | 4 ++-- misc/rbkpkg.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/actpkg.sh b/misc/actpkg.sh index 8d8f4719..7c777a15 100644 --- a/misc/actpkg.sh +++ b/misc/actpkg.sh @@ -20,7 +20,7 @@ case "${extension}" in spawn dpkg -i --force-all "$filename" set timeout ${duration} expect { - "y/n" { send "n\n"; exp_continue } + "y/n" { send "y\n"; exp_continue } } EOF ;; @@ -32,7 +32,7 @@ EOF spawn rpm -Uvh "$filename" set timeout ${duration} expect { - "y/n" { send "n\n"; exp_continue } + "y/n" { send "y\n"; exp_continue } } EOF ;; diff --git a/misc/rbkpkg.sh b/misc/rbkpkg.sh index f8c9868b..413361a4 100644 --- a/misc/rbkpkg.sh +++ b/misc/rbkpkg.sh @@ -20,7 +20,7 @@ case "${extension}" in spawn dpkg -i --force-all "$filename" set timeout ${duration} expect { - "y/n" { send "n\n"; exp_continue } + "y/n" { send "y\n"; exp_continue } } EOF ;; @@ -32,7 +32,7 @@ EOF spawn rpm -Uvh --oldpackage "$filename" set timeout ${duration} expect { - "y/n" { send "n\n"; exp_continue } + "y/n" { send "y\n"; exp_continue } } EOF ;;