From df555731c42dfd11c0f8ba4957ebcd708599d507 Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Fri, 20 Sep 2013 22:17:48 +0000
Subject: [PATCH] minor script changes

- mbuild.sh: don't require bash
- Slackware/i2p/doinst.sh: add bash shebang
---
 Slackware/i2p/doinst.sh |  2 +-
 core/c/mbuild.sh        | 20 +++-----------------
 2 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/Slackware/i2p/doinst.sh b/Slackware/i2p/doinst.sh
index 96e227ec38..538403bf5d 100644
--- a/Slackware/i2p/doinst.sh
+++ b/Slackware/i2p/doinst.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 INST_DIR=directory
 
diff --git a/core/c/mbuild.sh b/core/c/mbuild.sh
index 16c92a7e9a..b2d3f869ef 100755
--- a/core/c/mbuild.sh
+++ b/core/c/mbuild.sh
@@ -1,21 +1,7 @@
-#!/usr/bin/env bash
+#!/bin/sh -e
 # Automatic build of so files, ignores failed builds.
 # Place latest gmp tarball in the jbigi dir, and exec this script.
 
-if [ -z "$BASH_VERSION" ]; then
-	echo "This script needs to be run with Bash."
-	echo
-	echo "Please install bash and then run this script with"
-	echo "bash $0"
-	exit 1
-fi
-
-#JBIGI=../../../installer/lib/jbigi/jbigi.jar
-
-#if [ -f jbigi.jarx ] ; then
-#JBIGI=../jbigi.jar
-#fi
-
 rm -f t/* jcpuid/lib/freenet/support/CPUInformation/* jbigi/lib/net/i2p/util/*
 
 ( cd jcpuid ; ./build.sh )
@@ -32,7 +18,7 @@ mkdir t
 cp jbigi/lib/net/i2p/util/* t/
 ( 
 	cd t
-	for i in *.so ; { strip $i ; }
+	for i in *.so ; do strip $i ; done
 )
 
 cp jcpuid/lib/freenet/support/CPUInformation/* t/
@@ -47,7 +33,7 @@ mkdir t
 cp jbigi/lib/net/i2p/util/* t/
 ( 
 	cd t
-	for i in *.so ; { strip $i ; }
+	for i in *.so ; do strip $i ; done
 )
 
 
-- 
GitLab