Commit f3f217ea authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: replace !-z by -n in bash scripts

parent 4f5b316a
Pipeline #8357 passed with stages
in 134 minutes and 16 seconds
......@@ -22,7 +22,7 @@ set -e
# verify basic tools are here
which sh >/dev/null 2>&1 || ret=$?
if [ ! -z "$ret" ] ; then echo "ERROR: Missing tool 'which'"; exit 1 ; fi
if [ -n "$ret" ] ; then echo "ERROR: Missing tool 'which'"; exit 1 ; fi
for tool in dirname find file grep cut sed chmod cat readlink ; do
if [ -z "$(which $tool)" ] ; then
echo "ERROR: Missing tool '${tool}'"
......
......@@ -22,7 +22,7 @@ set -e
# verify basic tools are here (install_name_tool is specific macOS)
which sh >/dev/null 2>&1 || ret=$?
if [ ! -z "$ret" ] ; then echo "ERROR: Missing tool 'which'"; exit 1 ; fi
if [ -n "$ret" ] ; then echo "ERROR: Missing tool 'which'"; exit 1 ; fi
for tool in dirname find file grep cut sed chmod cat readlink install_name_tool ; do
if [ -z "$(which $tool)" ] ; then
echo "ERROR: Missing tool '${tool}'"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment