Commit 2f5796b8 authored by Guillaume Pasero's avatar Guillaume Pasero

PKG: error in pkgsetup script

parent dfa5e37b
......@@ -21,8 +21,8 @@
set -e
# verify basic tools are here
which 2>/dev/null || ret=$?
if [ ! $ret -eq 0 ] ; then echo "ERROR: Missing tool 'which'"; exit 1 ; fi
which sh >/dev/null 2>&1 || ret=$?
if [ ! -z "$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}'"
......
......@@ -21,8 +21,8 @@
set -e
# verify basic tools are here (install_name_tool is specific macOS)
which 2>/dev/null || ret=$?
if [ ! $ret -eq 0 ] ; then echo "ERROR: Missing tool 'which'"; exit 1 ; fi
which sh >/dev/null 2>&1 || ret=$?
if [ ! -z "$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