aboutsummaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-01-03 11:00:53 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-01-03 11:00:53 -0600
commit1e953ee8b4068dc25025082ab0f5bb13380727b1 (patch)
treedfdd930ccd00cffc149cb5ef2bf038f3e1f5cd52 /.travis
parentf3184d202190a5e6e1bcc7b6e2bddf29130be735 (diff)
downloadcryptography-1e953ee8b4068dc25025082ab0f5bb13380727b1.tar.gz
cryptography-1e953ee8b4068dc25025082ab0f5bb13380727b1.tar.bz2
cryptography-1e953ee8b4068dc25025082ab0f5bb13380727b1.zip
use -n instead of ! -z
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/install.sh2
-rwxr-xr-x.travis/run.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/.travis/install.sh b/.travis/install.sh
index f04c2ff3..a4f99be4 100755
--- a/.travis/install.sh
+++ b/.travis/install.sh
@@ -69,7 +69,7 @@ else
OPENSSL_DIR="ossl-098l"
fi
# download, compile, and install if it's not already present via travis cache
- if [ ! -z "$OPENSSL_DIR" ]; then
+ if [ -n "$OPENSSL_DIR" ]; then
if [[ ! -f "$HOME/$OPENSSL_DIR/bin/openssl" ]]; then
curl -O https://www.openssl.org/source/openssl-$OPENSSL_VERSION_NUMBER.tar.gz
tar zxf openssl-$OPENSSL_VERSION_NUMBER.tar.gz
diff --git a/.travis/run.sh b/.travis/run.sh
index c8707a4f..9731e20a 100755
--- a/.travis/run.sh
+++ b/.travis/run.sh
@@ -27,7 +27,7 @@ else
OPENSSL_DIR="ossl-098l"
fi
- if [ ! -z "$OPENSSL_DIR" ]; then
+ if [ -n "$OPENSSL_DIR" ]; then
export PATH="$HOME/$OPENSSL_DIR/bin:$PATH"
export CFLAGS="-I$HOME/$OPENSSL_DIR/include"
# rpath on linux will cause it to use an absolute path so we don't need to do LD_LIBRARY_PATH