Tools: correct check for realpath

This commit is contained in:
Peter Barker 2018-05-17 13:30:05 +10:00 committed by Peter Barker
parent ee01687c55
commit d320e8517d
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ else
fi
RP=$(apt-cache search -n '^realpath$')
if -n "$RP"; then
SITL_PKGS+=" realpath"
if [ -n "$RP" ]; then
BASE_PKGS+=" realpath"
fi
$APT_GET install $BASE_PKGS $SITL_PKGS $PX4_PKGS $ARM_LINUX_PKGS