From afae46ca68beaadf36a0c96b125c32bc27e5a83b Mon Sep 17 00:00:00 2001 From: Jess Robinson Date: Sat, 11 May 2013 14:37:39 +0100 Subject: Correctly quote result from adb, otherwise multiline responses breal (eg signal_cmd) --- hints/linux-android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hints') 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" -- cgit v1.2.1