Skip to content

Commit

Permalink
allow file command to fail in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Dec 13, 2024
1 parent 2bf1d2e commit e7b2fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extract:
{ tail -n1 compiled.url.txt | sha1sum -c - ; } \
|| curl "$$(head -n1 compiled.url.txt)" -o $(TARBALL)
# check file type.
file $(TARBALL)
-file $(TARBALL)
# validate the hash, otherwise remove the incorrect file and abort.
{ tail -n1 compiled.url.txt | sha1sum -c - ; } || { rm -v $(TARBALL); exit 1; }
tar xf $(TARBALL) --keep-old-files --touch
Expand Down

0 comments on commit e7b2fc3

Please sign in to comment.