From 945cc55b5489a48ea9a30a32bf437e9537c04b2d Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Thu, 12 Jul 2012 22:43:12 +0000
Subject: [PATCH] move check for binary down since osx binaries are no longer
 'fat'

---
 installer/resources/i2prouter | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter
index 1e15f57b9a..ac391947ea 100644
--- a/installer/resources/i2prouter
+++ b/installer/resources/i2prouter
@@ -209,14 +209,6 @@ failed() {
         esac
 }
 
-if [ ! -r "${WRAPPER_CMD}" ]; then
-    echo "Unable to locate ${WRAPPER_CMD} in ${I2P}!"
-    echo
-    unsupported
-    echo
-    exit 1
-fi
-
 if [ -n "$FIXED_COMMAND" ]
 then
     COMMAND="$FIXED_COMMAND"
@@ -559,6 +551,13 @@ then
     exit 1
 fi
 
+if [ ! -r "${WRAPPER_CMD}" ]; then
+    echo "Unable to locate ${WRAPPER_CMD} in ${I2P}!"
+    echo
+    unsupported
+    echo
+    exit 1
+fi
 
 # Build the nice clause
 if [ "X$PRIORITY" = "X" ]
-- 
GitLab