diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-08-27 22:01:26 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-08-27 22:01:26 +0300 |
commit | 5d4949e8db82c0f65bfcaec216aeb4dc4d4000e8 (patch) | |
tree | 64d315e7bcd67599c88b081112eb495ea29d9d8b /rex | |
parent | 11c17b2b72ce7a6b5b575a60732ba0de82b93bd2 (diff) | |
download | rex-5d4949e8db82c0f65bfcaec216aeb4dc4d4000e8.tar.gz rex-5d4949e8db82c0f65bfcaec216aeb4dc4d4000e8.tar.bz2 |
Allow for trailing \r in earlycmd
Diffstat (limited to 'rex')
-rwxr-xr-x | rex | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1114,6 +1114,8 @@ proc runcmd {hosts command} { if {$sidinfo($sid,state) == "INIT"} { if {[info exists sidinfo($sid,earlycmd)] && $sidinfo($sid,earlycmd) != ""} { + regsub {\r+$} $sidinfo($sid,earlycmd) {} \ + sidinfo($sid,earlycmd) send -i $sid "$sidinfo($sid,earlycmd)\r" unset sidinfo($sid,earlycmd) } else { |