1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #6389 from gebart/pr/ci-output-whitespace

CI: fix whitespace handling in command output
This commit is contained in:
Cenk Gündoğan 2017-01-18 20:10:47 +01:00 committed by GitHub
commit 90e85ca1de

View File

@ -43,7 +43,7 @@ function run {
OUT_LENGTH="$(echo -n $OUT | wc -c)"
if (( "$OUT_LENGTH" > 0 )); then
echo -e "Command output:\n"
(echo $OUT | while read -r line; do echo -ne "\t"; echo $line; done)
(printf "%s" "$OUT" | while IFS= read -r line; do printf "\t%s\n" "$line"; done)
echo ""
fi
}