From 6b30e73a0d4800c7a2d726b85f0aa59dbab8fbb3 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 12 Feb 2015 15:58:10 -0500 Subject: [PATCH] Add force flag to bower install --- bin/setup.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/bin/setup.sh b/bin/setup.sh index 482dee6333..ab58b71625 100755 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -151,14 +151,8 @@ if [ -n "$DO_DOWNLOAD" ]; then fi BOWER=$(pickcmd node_modules/bower/bin/bower bower) - BOWER_HARD_RESET_TIME=1422672905 - if [ -d bower_components -a $( stat bower_components -c%W ) -lt $BOWER_HARD_RESET_TIME ]; then - ## If you make a breaking change to bower.json, then update BOWER_HARD_RESET_TIME. - ## Ex: If bower.json newly declares a dependency which had been loaded transitively, - ## then bower may fail to update the dependency, so should bump BOWER_HARD_RESET_TIME. - rm -rf bower_components - fi - $BOWER install + # Without the force flag bower won't check for new versions or verify that installed software matches version specified in bower.json + $BOWER install -f popd fi -- 2.25.1