Ignored webapp/install error when DESTDIR doesn't exist 57/15757/1 5.99.3 flounder/5.99.3 flounder_5.99.3
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 25 Jul 2018 16:26:38 +0000 (18:26 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 25 Jul 2018 16:26:38 +0000 (18:26 +0200)
Change-Id: I80e79fc350a1905cb3c4a98ef0a7cf0659a18c88
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Makefile

index 99fbb55..705b670 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -149,7 +149,7 @@ webapp: webapp/install
 
 webapp/install:
        (cd webapp && npm install)
-       @[ -d ${DESTDIR}/usr ] && { echo "Removing unwanted ${DESTDIR}/usr directory"; rm -rf ${DESTDIR}/usr; }
+       @[ -d ${DESTDIR}/usr ] && { echo "Removing unwanted ${DESTDIR}/usr directory"; rm -rf ${DESTDIR}/usr; } || true
 
 .PHONY: scripts
 scripts: