From 3615219c4cc0b7f69d7aeb16759f434cdae14f63 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 16 May 2018 08:35:54 +1000 Subject: [PATCH] Tools: install-prereqs-ubuntu: correct check for realpath --- Tools/scripts/install-prereqs-ubuntu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/scripts/install-prereqs-ubuntu.sh b/Tools/scripts/install-prereqs-ubuntu.sh index f456cb9f98..e253da4aa3 100755 --- a/Tools/scripts/install-prereqs-ubuntu.sh +++ b/Tools/scripts/install-prereqs-ubuntu.sh @@ -86,7 +86,8 @@ else SITL_PKGS+=" python-wxgtk2.8" fi -if apt-cache search realpath; then +RP=$(apt-cache search -n '^realpath$') +if -n "$RP"; then SITL_PKGS+=" realpath" fi