diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-06-10 17:06:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-10 17:06:27 +0000 |
commit | 0a3c3205cb4e68245222e5c28315d3f53ac8c2ff (patch) | |
tree | 53cdcb6a51446e83c49b149f1b5c2605c8ba8b47 | |
parent | a183fe32ffacb11fc5c36d50418367004dd195b5 (diff) | |
parent | 168437bb66b03e45ee44ccb187217a98825e20ae (diff) |
Merge pull request #281 from sifive/update-f
update-targets: Don't test for the .dts extension
-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 |