diff options
author | Palmer Dabbelt <palmer@sifive.com> | 2019-06-07 22:19:43 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-06-07 22:19:43 -0700 |
commit | 168437bb66b03e45ee44ccb187217a98825e20ae (patch) | |
tree | 39269e6826086d80d5b6d248642e99d48762aba1 | |
parent | 2c00d003b2e5bff9cab4c8514288806f418ab985 (diff) |
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 <palmer@sifive.com>
-rwxr-xr-x | bsp/update-targets.sh | 5 |
1 files 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 |