Skip to content

Commit

Permalink
Print tar --version even if explicitly set
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 31, 2011
1 parent 13d148e commit d65cd8a
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions scripts/install.sh
Expand Up @@ -72,27 +72,29 @@ fi

BACK="$PWD"

ret=0
tar="${TAR}"
if [ -z "$tar" ]; then
tar=`which tar 2>&1`
ret=$?
fi

if [ $ret -eq 0 ] && [ -x "$tar" ]; then
echo "tar=$tar"
echo "version:"
$tar --version
ret=$?
fi
if [ $ret -eq 0 ] && [ -x "$tar" ]; then
echo "tar=$tar"
echo "version:"
$tar --version
ret=$?
fi

if [ $ret -eq 0 ]; then
(exit 0)
else
echo "No suitable tar program found."
exit 1
fi
if [ $ret -eq 0 ]; then
(exit 0)
else
echo "No suitable tar program found."
exit 1
fi



# Try to find a suitable make
# If the MAKE environment var is set, use that.
# otherwise, try to find gmake, and then make.
Expand Down

0 comments on commit d65cd8a

Please sign in to comment.