]> Cypherpunks repositories - gostls13.git/commitdiff
minor error checking to android launcher
authorKai Backman <kaib@golang.org>
Mon, 19 Jul 2010 08:43:33 +0000 (11:43 +0300)
committerKai Backman <kaib@golang.org>
Mon, 19 Jul 2010 08:43:33 +0000 (11:43 +0300)
R=dho
CC=golang-dev
https://golang.org/cl/1777041

misc/arm/a

index 140b47e2962edd33204fb1c4b2ee9e7139934eac..7d810a30f71129774113239cea2de6dabe5ac617 100755 (executable)
@@ -29,7 +29,7 @@ exp ()
 rloc=/data/local/tmp/retval
 rsize=$(adb shell "ls -l $rloc"|tr -s ' '|cut -d' ' -f4)
 rcheck=38
-if [ $rsize != $rcheck ] ; then
+if [ "$rsize" != "$rcheck" ]; then
 #      echo "debug: retval size incorrect want $rcheck, got $rsize. uploading"
        echo  >/tmp/adb.retval '#!/system/bin/sh
 "$@"