Skip to content

Commit

Permalink
configure's check_path also accepts absolute paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
btovar committed Sep 14, 2016
1 parent ff19347 commit 8759044
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions configure.tools.sh
Expand Up @@ -62,6 +62,18 @@ check_file ()
check_path ()
{
echon "checking for $1..."

local check_path_var=$1
if [ "${check_path_var}" != "${check_path_var#/}" ]
then
if check_file $check_path_var
then
return 0
else
return 1
fi
fi

IFS=":"
for dir in $PATH
do
Expand Down

0 comments on commit 8759044

Please sign in to comment.