Modified plugin_makefile to avoid deleting the D3Q directory if it contains a file called "protect" previous implementation was not working because makefile calls /usr/bin/test and not the bash test builtin, and they have different options.

This commit is contained in:
Lorenzo Paulatto 2020-04-30 10:09:59 +02:00
parent 256604dee3
commit 82c4e64454
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ d3q_clean:
#d3q_veryclean: d3q_clean
d3q_veryclean: d3q_clean
# delete unpacked directory and its links, keep the archive
test -a ../D3Q/protect || \
test -e ../D3Q/protect || \
(cd ..; \
i=D3Q; \
while j=$$(readlink $$i);do rm -rf $$i; i=$$j;done;\