Replace bash scripts with frostfs-adm #18

Merged
fyrchik merged 4 commits from fyrchik/frostfs-dev-env:devenv-adm into master 2023-05-02 17:01:46 +00:00
Showing only changes of commit ca265c4e4f - Show all commits

View file

@ -1,23 +0,0 @@
#!/usr/bin/expect
set passwd [lindex $argv 0]
set args [lrange $argv 1 end]
spawn -noecho {*}$args
expect -re {^.*assword.*$}
if { $passwd == "-"} {
send -- "\r"
} else {
send -- "$passwd\r"
}
expect {
"Relay transaction" {
send "y\r"
exp_continue
}
EOF
}
lassign [wait] pid spawnid os_error_flag value
exit $value