From 168437bb66b03e45ee44ccb187217a98825e20ae Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Fri, 7 Jun 2019 22:19:43 -0700 Subject: update-targets: Don't test for the .dts extension I'm not sure why this is failing for me, but it is. Signed-off-by: Palmer Dabbelt --- bsp/update-targets.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bsp/update-targets.sh b/bsp/update-targets.sh index d26aa25..e69fd53 100755 --- a/bsp/update-targets.sh +++ b/bsp/update-targets.sh @@ -45,9 +45,10 @@ then TARGET_LIST="$(ls -d coreip*) " TARGET_LIST+="sifive-hifive1 sifive-hifive1-revb freedom-e310-arty sifive-hifive-unleashed " else - if [ ! -f "$DTSFILE" -a "$DTSFILE" != "*.dts" ] + file "$DTSFILE" + if [ ! -f "$DTSFILE" ] then - echo "[ERROR] $0: $DTSFILE must be a dts file" >&2 + echo "[ERROR] $0: $DTSFILE must be a file" >&2 help "$0" exit 1 fi -- cgit v1.2.3