소스 검색

Remove cacache

Bob Mottram 7 년 전
부모
커밋
0a8147e8c3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      src/freedombone-app-scuttlebot

+ 3
- 0
src/freedombone-app-scuttlebot 파일 보기

402
 
402
 
403
     cat <<EOF > "$rootdir/usr/bin/install_scuttlebot"
403
     cat <<EOF > "$rootdir/usr/bin/install_scuttlebot"
404
 #!/bin/bash
404
 #!/bin/bash
405
+if [ -d ~/.npm/_cacache ]; then
406
+    rm -rf ~/.npm/_cacache
407
+fi
405
 if ! npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION}; then
408
 if ! npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION}; then
406
     exit 1
409
     exit 1
407
 fi
410
 fi