net: script: Fix the net-tools path

Fix the correct path to net-tools directory.
Also default to Bash instead of /bin/sh as we use
Bash syntax.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
This commit is contained in:
Seppo Takalo 2023-10-05 13:44:45 +03:00 committed by Johan Hedberg
commit 1ecd4fda1a

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Copyright (c) 2019 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
@ -36,7 +36,7 @@ check_dirs ()
do
local l
l="$d/net-tools"
l="$d/tools/net-tools"
if [ -d "$l" ]; then
NET_TOOLS_BASE="$l"
break