Skip to content

Commit 7472271

Browse files
mrochMarshall Roch
authored andcommitted
fix local build of flow-parser-bin
Summary: this wasn't working because when the condition was falsy, the test exiting non-zero not only short circuits the && but also kills the build. so we need it to exit code 0 for a cache hit. Reviewed By: panagosg7 Differential Revision: D7528520 fbshipit-source-id: bd688a92d43be6093ec504670ca04dedee020f11
1 parent 1107536 commit 7472271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flow-parser-bin/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $(addsuffix .dl,$(RELEASE_ZIPS)):
5353
dist/local/libflowparser-$(PLATFORM).zip:
5454
@mkdir -p "$(@D)"
5555
$(MAKE) -C ../../src/parser dist/libflowparser.zip
56-
[ ! -e "$@" -o "../../src/parser/dist/libflowparser.zip" -nt "$@" ] && \
56+
[ -e "$@" -a "$@" -nt "../../src/parser/dist/libflowparser.zip" ] || \
5757
cp ../../src/parser/dist/libflowparser.zip "$@"
5858

5959
# The following two "pattern" rules (because of the %) choose between using

0 commit comments

Comments
 (0)