9 lines
157 B
Bash
9 lines
157 B
Bash
#!/bin/bash
|
|
|
|
expect <<EOF
|
|
set timeout ${1}
|
|
spawn dpkg -i --force-all ${3}
|
|
expect {
|
|
"y/n" { send "${2}\n";exp_continue }
|
|
}
|
|
EOF |