From 667e4345a01df390c7925f6c4d6b30f7cad001c2 Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Tue, 13 Sep 2011 01:18:58 +0000
Subject: [PATCH] Fix "bashisms" in tanuki's script

---
 installer/resources/i2prouter | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter
index 19344d5d16..4d570f3ce5 100644
--- a/installer/resources/i2prouter
+++ b/installer/resources/i2prouter
@@ -321,7 +321,7 @@ if [ "$DIST_OS" = "macosx" ]
 then
     OS_VER=`sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*'`
     DIST_ARCH="universal"
-    if [[ "$OS_VER" < "10.5.0" ]]
+    if [ "$OS_VER" -lt "10.5.0" ]
     then
         DIST_BITS="32"
     else
@@ -930,7 +930,7 @@ macosxstart() {
     fi
     # If launchd is set to run the daemon already at Load, we don't need to call start
     getpid
-    if [ "X$pid" == "X" ] ; then
+    if [ "X$pid" = "X" ] ; then
         launchctl start ${APP_PLIST_BASE}
     fi
 
-- 
GitLab