Prechádzať zdrojové kódy

frameworks/C/lwan: Delete checkout directory if not fully installed

Leandro Pereira 11 rokov pred
rodič
commit
f774579290
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      frameworks/C/lwan/install.sh

+ 2 - 0
frameworks/C/lwan/install.sh

@@ -6,6 +6,8 @@ INSTALLED_FILE="${IROOT}/lwan-${REV}.installed"
 RETCODE=$(fw_exists ${INSTALLED_FILE})
 [ ! "$RETCODE" == 0 ] || { return 0; }
 
+[ ! -e ${INSTALLED_FILE} -a -d ${IROOT}/lwan ] && rm -rf ${IROOT}/lwan
+
 # Lwan is only built during installation as a dependency sanity check.
 sudo apt-get update && \
 	sudo apt-get install libjemalloc-dev && \