fix: dpkg software issue

This commit is contained in:
2024-01-17 14:40:48 +08:00
parent 8eb6430ae3
commit 9e54ccd886
5 changed files with 15 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/bash
expect <<EOF
set timeout 10
spawn dpkg -i --force-all ${2}
expect <<EOF
set timeout ${1}
spawn dpkg -i --force-all ${3}
expect {
"y/n" { send "${1}\n";exp_continue }
"y/n" { send "${2}\n";exp_continue }
}
EOF