summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-11-30 21:01:26 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-11-30 21:01:26 +0100
commit616592fafcf45338b7de037ad86f5f4a2ebc8a79 (patch)
tree1b99abe35776daaaedb743478c1a5c98747bf425
parent98940a3a6fbeffa94548f314b3996ddbcbc129f5 (diff)
downloadbuildscripts-616592fafcf45338b7de037ad86f5f4a2ebc8a79.tar.gz
buildscripts-616592fafcf45338b7de037ad86f5f4a2ebc8a79.tar.bz2
buildscripts-616592fafcf45338b7de037ad86f5f4a2ebc8a79.zip
fix check for empty string
-rwxr-xr-xbin/build-deb-package3
-rwxr-xr-xbin/build-rpm-package2
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/build-deb-package b/bin/build-deb-package
index 7de31fd..392e335 100755
--- a/bin/build-deb-package
+++ b/bin/build-deb-package
@@ -120,7 +120,8 @@ prepare_workspace() {
cd "$PROJECT_DIR"
# by default we build for all current debian versions
- if [ -n $ARGV2_CODENAME ]; then
+ echo "HIIIIIIEEEEEERR: $ARGV2_CODENAME"
+ if [ "x$ARGV2_CODENAME" != "x" ]; then
if echo "$DEBIAN_DISTROS" | grep $ARGV2_CODENAME >/dev/null; then
DEB_BUILD_FOR="debian:$ARGV2_CODENAME"
elif echo "$UBUNTU_DISTROS" | grep $ARGV2_CODENAME >/dev/null; then
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 5459781..48146a0 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -116,7 +116,7 @@ prepare_workspace() {
GIT_OBJECT_ID=`git show-ref -s heads/master`
cd "$PROJECT_DIR"
- if [ -n "$ARGV2_CODENAME" ]; then
+ if [ "x$ARGV2_CODENAME" != "x" ]; then
if echo "$FEDORA_DISTROS" | grep $ARGV2_CODENAME >/dev/null; then
RPM_BUILD_FOR="fedora:$ARGV2_CODENAME"
elif echo "$EPEL_DISTROS" | grep $ARGV2_CODENAME >/dev/null; then