From: Tim Otten Date: Sat, 31 Jan 2015 03:08:17 +0000 (-0800) Subject: CRM-15890 - bin/setup.sh - Workaround for bower bug X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c9b5570ea63cb8cb0544c7678aa64af3f64acde2;p=civicrm-core.git CRM-15890 - bin/setup.sh - Workaround for bower bug --- 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