forked from Archive/PX4-Autopilot
build: cope better with absolute paths
This commit is contained in:
parent
0fff8aa23b
commit
890b1ac068
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue