buildme: avoid shell expansion of tr expression

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".
This commit is contained in:
Luke Diamand
2016-09-26 22:05:36 +01:00
parent ed1631cf44
commit 9f0f3f4a73

View File

@@ -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