Framework: clean doesn't work if src is not found

(cherry picked from commit 893f0ba130)
This commit is contained in:
Franco Fichtner 2017-11-24 07:43:38 +00:00
parent 8a84912b63
commit 223d53d2cc

View file

@ -227,9 +227,11 @@ umount: check
umount -f "<above>:${.CURDIR}/src"
clean: check
@git reset -q ${.CURDIR}/src && \
@if [ -d ${.CURDIR}/src ]; then \
git reset -q ${.CURDIR}/src && \
git checkout -f ${.CURDIR}/src && \
git clean -xdqf ${.CURDIR}/src
git clean -xdqf ${.CURDIR}/src; \
fi
lint-desc: check
@if [ ! -f ${.CURDIR}/${PLUGIN_DESC} ]; then \