From d9f5a8621d1d8bfc7f86b0fce1f71f0a398c534f Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Sun, 11 Dec 2011 11:50:41 +0000
Subject: [PATCH] Enclose "tr" parameters in quotes

---
 core/c/jbigi/mbuild-all.sh   | 2 +-
 core/c/jbigi/mbuild_jbigi.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/c/jbigi/mbuild-all.sh b/core/c/jbigi/mbuild-all.sh
index 3740af26d6..5ec7d08731 100755
--- a/core/c/jbigi/mbuild-all.sh
+++ b/core/c/jbigi/mbuild-all.sh
@@ -114,7 +114,7 @@ NetBSD*|FreeBSD*|OpenBSD*)
 	NAME="libjbigi"
 	TYPE="so"
 	PLATFORM_LIST=""
-	BSDTYPE="`uname -s | tr [A-Z] [a-z]`"
+	BSDTYPE=$(uname -s | tr "[A-Z]" "[a-z]")
 	arch=$(uname -m | cut -f1 -d" ")
 	case ${arch} in
 		i[3-6]86)
diff --git a/core/c/jbigi/mbuild_jbigi.sh b/core/c/jbigi/mbuild_jbigi.sh
index 4b505d1e16..855260f99c 100755
--- a/core/c/jbigi/mbuild_jbigi.sh
+++ b/core/c/jbigi/mbuild_jbigi.sh
@@ -24,7 +24,7 @@ Darwin*)
         LINKFLAGS="-dynamiclib -framework JavaVM"
         LIBFILE="libjbigi.jnilib";;
 SunOS*|OpenBSD*|NetBSD*|FreeBSD*|Linux*)
-        UNIXTYPE="`uname -s | tr [A-Z] [a-z]`"
+        UNIXTYPE=$(uname -s | tr "[A-Z]" "[a-z]")
         if [ $UNIXTYPE = "sunos" ]; then
                 UNIXTYPE="solaris"
         elif [ $UNIXTYPE = "freebsd" ]; then
-- 
GitLab