mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* ench: increate testpackage.sh timeout seconds * Update debRpmAutoInstall.sh extend timeout to 30
15 lines
314 B
Bash
Executable file
15 lines
314 B
Bash
Executable file
#!/usr/bin/expect
|
|
set packageName [lindex $argv 0]
|
|
set packageSuffix [lindex $argv 1]
|
|
set timeout 30
|
|
if { ${packageSuffix} == "deb" } {
|
|
spawn dpkg -i ${packageName}
|
|
} elseif { ${packageSuffix} == "rpm"} {
|
|
spawn rpm -ivh ${packageName}
|
|
}
|
|
expect "*one:"
|
|
send "\r"
|
|
expect "*skip:"
|
|
send "\r"
|
|
|
|
expect eof
|