Skip to content

Commit

Permalink
chore(bower/publish): run local precommit script if available
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Feb 24, 2015
1 parent 3bc429a commit 958bc1a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/bower/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,21 @@ function prepare {
cp $BUILD_DIR/angular-csp.css $TMP_DIR/bower-angular


#
# Run local precommit script if there is one
#
for repo in "${REPOS[@]}"
do
if [ -f $TMP_DIR/bower-$repo/precommit.sh ]
then
echo "-- Running precommit.sh script for bower-$repo"
cd $TMP_DIR/bower-$repo
$TMP_DIR/bower-$repo/precommit.sh
cd $SCRIPT_DIR
fi
done


#
# update bower.json
# tag each repo
Expand Down

0 comments on commit 958bc1a

Please sign in to comment.