diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2018-05-27 00:15:30 +0200 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2018-05-27 01:29:20 +0200 |
commit | 2bd6ffae31364329ca168ba5b4ef1833945d48dd (patch) | |
tree | 275049c0a006196cb4bf7ed736fe93e6ded2ca36 | |
parent | 1f61c03322c3728f35b3f0cd4ff04f73522f1e67 (diff) |
signlk.sh: do not check input file extension
Input file extension is meaningless.. the input file will very soon be openned
with ELFIO, and if it's not a valid ELF valid, the program will stop anyways, so
these checks are meaningless.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rwxr-xr-x | signlk.sh | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -82,17 +82,6 @@ if [ "$INFILE" = "" ]; then fi INFILE_filename=$(echo $INFILE | rev | cut -f 2- -d '.' | rev) -INFILE_extension=$(echo $INFILE | rev | cut -f 1 -d '.' | rev) - -if [ "$INFILE_extension" = "" ]; then - echo "input file must be an elf or mbn file" - exit 3 -fi - -if [ "$INFILE_extension" != "elf" ] && [ "$INFILE_extension" != "mbn" ] && [ "$INFILE_extension" != "ELF" ] && [ "$INFILE_extension" != "MBN" ]; then - echo "input file must be an elf or mbn file" - exit 4 -fi if [ "$OUTFILE" = "" ]; then OUTFILE=$INFILE_filename"_signed.mbn" |