mirror of
https://github.com/lingble/tegra-demo-distro.git
synced 2025-10-29 11:42:26 +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
|
||||
DISTRO=$DISTRO_DEFAULT
|
||||
fi
|
||||
if ! distro_list | grep -q "$DISTRO"; then
|
||||
if ! distro_list | egrep -qx "[[:space:]]*$DISTRO"; then
|
||||
echo "ERROR: distro \"$DISTRO\" not found" >&2
|
||||
echo "Available DISTROs:" >&2
|
||||
distro_list >&2
|
||||
|
||||
Reference in New Issue
Block a user