Browse Source

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

Leandro Pereira 10 years ago
parent
commit
f774579290
1 changed files with 2 additions and 0 deletions
  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 && \