diff options
Diffstat (limited to 'lib/schroot.sh')
-rwxr-xr-x | lib/schroot.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/schroot.sh b/lib/schroot.sh index 8bd5a97b..373726c9 100755 --- a/lib/schroot.sh +++ b/lib/schroot.sh @@ -13,10 +13,10 @@ print_schroot_board_files() fi # Run dummy runtest to figure out which target boards load schroot-ssh.exp - runtest $target --tool none 2>&1 \ - | grep -B5 "^Using .*/schroot-ssh.exp as generic interface file for target\.\$" \ - | grep "^Using .* as board description file for target\.\$" \ - | sed -e "s/^Using \(.*\) as board description file for target\.\$/\1/" + runtest $target --tool none 2>&1 | awk ' +/^Using .* as board description file for target\.$/ { board=$2 } +/^Using .*\/schroot-ssh.exp as generic interface file for target\.$/ { print board } +' rm -f none.log none.sum } |