one more fix...

This commit is contained in:
Wolfgang Thaller 2019-09-16 21:05:40 +02:00
parent f2baef8d81
commit 14d0e3d8a9
1 changed files with 3 additions and 1 deletions

View File

@ -16,12 +16,14 @@
# You should have received a copy of the GNU General Public License
# along with Retro68. If not, see <http://www.gnu.org/licenses/>.
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/}