Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 50c0d50

Browse files
committed
WIP: use diff
1 parent 3fca8df commit 50c0d50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: .travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ install:
4545
# Log HTTP requests
4646
- npm config set loglevel http
4747
- npm install -g npm@2.5
48-
- md5sum npm-shrinkwrap.json
49-
- if [[ `md5sum npm-shrinkwrap.json` == `md5sum node_modules/npm-shrinkwrap.ng-hack.json` ]]; then echo "shrinkwrap changed. blowing away node_modules"; rm -rf node_modules; fi
48+
- diff -q npm-shrinkwrap.json npm-shrinkwrap.json; if [[ $? -ne 0 ]]; then echo "shrinkwrap changed. blowing away node_modules"; rm -rf node_modules; fi
5049
- time npm install
5150
- cp npm-shrinkwrap.json node_modules/npm-shrinkwrap.ng-hack.json
5251

0 commit comments

Comments
 (0)