buildme: avoid shell expansion of tr expression
authorLuke Diamand <luke@diamand.org>
Mon, 26 Sep 2016 21:05:36 +0000 (22:05 +0100)
committerLuke Diamand <luke@diamand.org>
Thu, 29 Sep 2016 18:53:38 +0000 (19:53 +0100)
Quote the tr expression to prevent the shell expanding it if
there happens to be a file called [a-z] or [A-Z], for example, a
file called "a".

buildme

diff --git a/buildme b/buildme
index 9e9d4d7a30a3ad832978440e919492f1b823225b..d7782761575751f3593cf888a6905979e53e4700 100755 (executable)
--- a/buildme
+++ b/buildme
@@ -6,7 +6,7 @@ BUILDTYPE=Debug
 shift
 fi
 
-BUILDSUBDIR=`echo $BUILDTYPE | tr [A-Z] [a-z]`;
+BUILDSUBDIR=`echo $BUILDTYPE | tr '[A-Z]' '[a-z]'`;
 
 if [ "armv6l" = `arch` ] || [ "armv7l" = `arch` ]; then
        # Native compile on the Raspberry Pi