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

Commit 827d94a

Browse files
chore(bower/publish): run local precommit script if available
1 parent 3bc429a commit 827d94a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/bower/publish.sh

+11
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ function prepare {
6262
# move csp.css
6363
cp $BUILD_DIR/angular-csp.css $TMP_DIR/bower-angular
6464

65+
#
66+
# Run local precommit script if there is one
67+
#
68+
for repo in "${REPOS[@]}"
69+
do
70+
if [ -f $TMP_DIR/bower-$repo/precommit.sh ]
71+
then
72+
echo "-- Running precommit.sh script for bower-$repo"
73+
$TMP_DIR/bower-$repo/precommit.sh
74+
fi
75+
done
6576

6677
#
6778
# update bower.json

0 commit comments

Comments
 (0)