From afae46ca68beaadf36a0c96b125c32bc27e5a83b Mon Sep 17 00:00:00 2001 From: Jess Robinson Date: Sat, 11 May 2013 14:37:39 +0100 Subject: [PATCH] Correctly quote result from adb, otherwise multiline responses breal (eg signal_cmd) --- hints/linux-android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hints/linux-android.sh b/hints/linux-android.sh index f5b602f..ae8be9d 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" -- 2.7.4