From c9b5570ea63cb8cb0544c7678aa64af3f64acde2 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 30 Jan 2015 19:08:17 -0800 Subject: [PATCH] CRM-15890 - bin/setup.sh - Workaround for bower bug --- bin/setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/setup.sh b/bin/setup.sh index eb31a8328f..482dee6333 100755 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -151,6 +151,13 @@ 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 popd fi -- 2.25.1