one more fix...

This commit is contained in:
Wolfgang Thaller 2019-09-16 21:05:40 +02:00
parent f2baef8d81
commit 14d0e3d8a9

View File

@ -16,12 +16,14 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Retro68. If not, see <http://www.gnu.org/licenses/>. # along with Retro68. If not, see <http://www.gnu.org/licenses/>.
shopt -s nullglob
function locateInterfaceThing() function locateInterfaceThing()
{ {
local varname=$1 local varname=$1
local name=$2 local name=$2
printf "Searching for %-25s" "$name..." 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 if [ -n "$found" ]; then
eval "$varname=\$found" eval "$varname=\$found"
echo ${found#$INTERFACES_DIR/} echo ${found#$INTERFACES_DIR/}