mirror of
https://github.com/lingble/tegra-demo-distro.git
synced 2025-11-01 21:17:55 +00:00
setup-env-internal: improve distro name checking
so substrings of distro names in the list don't count as valid. Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
@@ -113,7 +113,7 @@ if [ ! -e $BUILDDIR/conf/local.conf ]; then
|
|||||||
if [ -z "$DISTRO" ]; then
|
if [ -z "$DISTRO" ]; then
|
||||||
DISTRO=$DISTRO_DEFAULT
|
DISTRO=$DISTRO_DEFAULT
|
||||||
fi
|
fi
|
||||||
if ! distro_list | grep -q "$DISTRO"; then
|
if ! distro_list | egrep -qx "[[:space:]]*$DISTRO"; then
|
||||||
echo "ERROR: distro \"$DISTRO\" not found" >&2
|
echo "ERROR: distro \"$DISTRO\" not found" >&2
|
||||||
echo "Available DISTROs:" >&2
|
echo "Available DISTROs:" >&2
|
||||||
distro_list >&2
|
distro_list >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user