summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2013-07-11 13:20:11 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2013-07-11 13:20:11 +0200
commit6308228c754e9ad0fb33aa8830d0a0bc46736b20 (patch)
tree9c87cd488b770714533bb67847ebcf82f8ea5585
parenteab410bf980a3cac7e75110e60986bbd8a989f20 (diff)
downloadeurephia-6308228c754e9ad0fb33aa8830d0a0bc46736b20.tar.gz
eurephia-6308228c754e9ad0fb33aa8830d0a0bc46736b20.tar.xz
eurephia-6308228c754e9ad0fb33aa8830d0a0bc46736b20.zip
Get rid of bashism in eurephiadm/mk_buildinfo.sh
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
-rwxr-xr-xeurephiadm/mk_buildinfo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/eurephiadm/mk_buildinfo.sh b/eurephiadm/mk_buildinfo.sh
index cee2a65..051231a 100755
--- a/eurephiadm/mk_buildinfo.sh
+++ b/eurephiadm/mk_buildinfo.sh
@@ -27,7 +27,7 @@ buildhost="`hostname`"
# Check if we're in a git tree
gitdir="`git rev-parse --git-dir 2> /dev/null`"
-if [[ $? = 0 ]]; then
+if [ $? = 0 ]; then
# If we have a .git directory, presume the source is from a git tree
branch=`git symbolic-ref HEAD`
gitrev=`git rev-list ${branch} -1`
@@ -57,7 +57,7 @@ cat <<EOF > buildinfo.h
#define BUILDCONFIGURE "${configurecall}"
EOF
-if [[ -n "${gitrev}" ]]; then
+if [ -n "${gitrev}" ]; then
cat <<EOF >> buildinfo.h
#define GITDIR "${gitdir}"
#define BUILDBRANCH "${branch}"