mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
scripts: net: Fix incorrect error messages
If environment variables ZEPHYR_BASE or NET_TOOLS_BASE are unset, an incorrect message is printed saying that "it is set, but it is not a directory": $ZEPHYR_BASE is unset $ZEPHYR_BASE is set, but it is not a directory $NET_TOOLS_BASE is unset, no net-tools found $NET_TOOLS_BASE set, but it is not a directory This patch fixes that issue. Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
This commit is contained in:
committed by
Carles Cufí
parent
aa051857e5
commit
4695eb4e1d
@@ -21,9 +21,7 @@ check_dirs ()
|
||||
then
|
||||
echo '$ZEPHYR_BASE is unset' >&2
|
||||
ret_zephyr=1
|
||||
fi
|
||||
|
||||
if [ ! -d "$ZEPHYR_BASE" ]
|
||||
elif [ ! -d "$ZEPHYR_BASE" ]
|
||||
then
|
||||
echo '$ZEPHYR_BASE is set, but it is not a directory' >&2
|
||||
ret_zephyr=1
|
||||
@@ -55,9 +53,7 @@ check_dirs ()
|
||||
then
|
||||
echo '$NET_TOOLS_BASE is unset, no net-tools found' >&2
|
||||
ret_net_tools=1
|
||||
fi
|
||||
|
||||
if [ ! -d "$NET_TOOLS_BASE" ]
|
||||
elif [ ! -d "$NET_TOOLS_BASE" ]
|
||||
then
|
||||
echo '$NET_TOOLS_BASE set, but it is not a directory' >&2
|
||||
ret_net_tools=1
|
||||
|
||||
Reference in New Issue
Block a user