spawn ssh $user@$host
expect {
- "(yes/no)? " {
+ "(yes/no)? " {
send "yes\r"
send_user "Key accepted";
}
send_user "Key accepting dont needed";
}
}
-
-spawn cvs -d :ext:$user@$host:$cvsroot co -N -d $dir $module
+
+spawn cvs -d :ext:$user@$host:$cvsroot co -N -d $dir $module
expect {
"assword:" {
send "$pass\r"
expect {
- "assword:" {
+ "assword:" {
send_user "<h3><font color=red>cvs checkout $module failed. Incorrect password</font></h3>";
exit 1
}
}
}
}
-
+
"aborted" {
send_user "<h3><font color=red>cvs checkout $module failed.</font></h3>";
exit 1
}
}
-
+