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

Commit 59205d7

Browse files
chore(bower/publish): run local precommit script if available
Closes #11164
1 parent 0cf170d commit 59205d7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/bower/publish.sh

+15
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@ function prepare {
6363
cp $BUILD_DIR/angular-csp.css $TMP_DIR/bower-angular
6464

6565

66+
#
67+
# Run local precommit script if there is one
68+
#
69+
for repo in "${REPOS[@]}"
70+
do
71+
if [ -f $TMP_DIR/bower-$repo/precommit.sh ]
72+
then
73+
echo "-- Running precommit.sh script for bower-$repo"
74+
cd $TMP_DIR/bower-$repo
75+
$TMP_DIR/bower-$repo/precommit.sh
76+
cd $SCRIPT_DIR
77+
fi
78+
done
79+
80+
6681
#
6782
# update bower.json
6883
# tag each repo

0 commit comments

Comments
 (0)