build: cope better with absolute paths

This commit is contained in:
Andrew Tridgell 2013-01-02 17:38:52 +11:00
parent 0fff8aa23b
commit 890b1ac068
1 changed files with 6 additions and 2 deletions

View File

@ -86,8 +86,12 @@ dodep ()
fi
done
if [ -z "$fullpath" ]; then
echo "# ERROR: No readable file for $1 found at any location"
show_usage
if [ -r $1 ]; then
fullpath=$1
else
echo "# ERROR: No readable file for $1 found at any location"
show_usage
fi
fi
fi