diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -108,11 +108,10 @@ clang src/main.cpp -MJ bin/main.json $WARNING_FLAGS $OPTIMIZATION $ADDITIONAL_FL -I . \ -lm $(pkg-config --cflags --libs $FFMPEG_LIBS) -if [[ "$DEBUG" == 1 ]]; then - pidof gf2 && echo "c ec compiled" > /tmp/control_pipe.dat +if [[ "$DEBUG" == 1 && "$(pidof gf2)" ]]; then + echo "c ec compiled" > /tmp/control_pipe.dat fi - # sed -e '1s/^/[\n/' -e '$s/,$/\n]/' bin/*.json > compile_commands.json if [[ "$OSTYPE" =~ ^darwin ]]; then |