From 6a9cabbead41d1be47d526b52a2ffccc63852990 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Fri, 7 Feb 2020 04:18:36 +0300 Subject: [PATCH] Fix `[ -z $var` clauses without quotes --- lib/dpl/assets/atlas/install | 2 +- lib/dpl/assets/pypi/install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dpl/assets/atlas/install b/lib/dpl/assets/atlas/install index 79c3e8d7d..902b47a42 100644 --- a/lib/dpl/assets/atlas/install +++ b/lib/dpl/assets/atlas/install @@ -7,7 +7,7 @@ if ! command -v atlas-upload &>/dev/null ; then chmod +x $HOME/bin/gimme fi - if [ -z $GOPATH ]; then + if [ -z "$GOPATH" ]; then export GOPATH="$HOME/gopath" else export GOPATH="$HOME/gopath:$GOPATH" diff --git a/lib/dpl/assets/pypi/install b/lib/dpl/assets/pypi/install index 484c46fe7..aa9e4397a 100644 --- a/lib/dpl/assets/pypi/install +++ b/lib/dpl/assets/pypi/install @@ -1,4 +1,4 @@ #!/bin/bash -if [ -z ${VIRTUAL_ENV+x} ]; then export PIP_USER=yes; fi && +if [ -z "${VIRTUAL_ENV}" ]; then export PIP_USER=yes; fi && wget -nv -O - https://bootstrap.pypa.io/get-pip.py | python - --no-setuptools --no-wheel && pip install --upgrade --ignore-installed %{setuptools_arg} %{twine_arg} %{wheel_arg}