From 14d0e3d8a914b5ec0ce9994128f501d2be78cefa Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Mon, 16 Sep 2019 21:05:40 +0200 Subject: [PATCH] one more fix... --- interfaces-and-libraries.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interfaces-and-libraries.sh b/interfaces-and-libraries.sh index 900eca86d7..816b2901bb 100755 --- a/interfaces-and-libraries.sh +++ b/interfaces-and-libraries.sh @@ -16,12 +16,14 @@ # You should have received a copy of the GNU General Public License # along with Retro68. If not, see . +shopt -s nullglob + function locateInterfaceThing() { local varname=$1 local name=$2 printf "Searching for %-25s" "$name..." - local found=`find "$INTERFACES_DIR"/ -name ".*" -prune -o -name $name -print` + local found=`find -L "$INTERFACES_DIR"/ -name ".*" -prune -o -name $name -print` if [ -n "$found" ]; then eval "$varname=\$found" echo ${found#$INTERFACES_DIR/}