summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJess Robinson <castaway@desert-island.me.uk>2013-05-11 14:37:39 +0100
committerBrian Fraser <fraserbn@gmail.com>2014-01-26 14:44:19 -0300
commitafae46ca68beaadf36a0c96b125c32bc27e5a83b (patch)
treea216796d83e4d34aa35f0fd5f6cb17884b2dfe8b /hints
parent31b9cdb1c8112732af70d17a569811568f2bead1 (diff)
downloadperl-afae46ca68beaadf36a0c96b125c32bc27e5a83b.tar.gz
Correctly quote result from adb, otherwise multiline responses breal (eg signal_cmd)
Diffstat (limited to 'hints')
-rw-r--r--hints/linux-android.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/hints/linux-android.sh b/hints/linux-android.sh
index f5b602fc15..ae8be9d73b 100644
--- a/hints/linux-android.sh
+++ b/hints/linux-android.sh
@@ -70,7 +70,7 @@ foo=\`adb -s $targethost shell "sh -c '(cd \$cwd && \$env ; \$exe \$args) > $tar
$from output.stdout
result=\`cat output.stdout\`
rm output.stdout
-result=\`echo \$result | sed -e 's|\r||g'\`
+result=\`echo "\$result" | sed -e 's|\r||g'\`
foo=\`echo \$foo | sed -e 's|\r||g'\`
# Also, adb doesn't exit with the commands exit code, like ssh does, double-grr
echo "\$result"