Skip to content

Commit 8f6f41b

Browse files
committed
guard against shell wildcards in commit messages
1 parent a186a05 commit 8f6f41b

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

run

+1-21
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,10 @@ if [ "$TRAVIS" = "true" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_
1515
git config --global push.default simple
1616

1717
git clone https://[email protected]/OpenMath/OpenMath.github.io.git
18-
# this doesn't work as git clone doesn't preserve timestamps
19-
# if [ "$TRAVIS_EVENT_TYPE" = "push" ]; then
20-
# case "$TRAVIS_COMMIT_MESSAGE" in
21-
# *clean* )
22-
# echo "clean build not copying files from OpenMath.github.io";;
23-
# *)
24-
# cp -p OpenMath.github.io/cd/Official/*.html CDs/cd/Official
25-
# cp -p OpenMath.github.io/cd/Official/*.omcd CDs/cd/Official
26-
# cp -p OpenMath.github.io/cd/experimental/*.html CDs/cd/experimental
27-
# cp -p OpenMath.github.io/cd/experimental/*.omcd CDs/cd/experimental
28-
# cp -p OpenMath.github.io/sts/*.html CDs/sts
29-
# cp -p OpenMath.github.io/cdgroups/*.html CDs/cdgroups
30-
# cp -p OpenMath.github.io/contrib/cd/*.html CDs/contrib/cd
31-
# cp -p OpenMath.github.io/contrib/cd/*.omcd CDs/contrib/cd
32-
# cp -p OpenMath.github.io/contrib/sts/*.html CDs/contrib/sts
33-
# ;;
34-
# esac
35-
# fi
3618
cd CDs
37-
# make
38-
# make install
3919
./make-all
4020
cd ../OpenMath.github.io
41-
NEW_MSG=`echo $TRAVIS_COMMIT_MESSAGE | sed -e 's/#/iss./g'`
21+
NEW_MSG=`echo "$TRAVIS_COMMIT_MESSAGE" | sed -e 's/#/iss./g' -e 's/[*?]//g'`
4222
git add --no-all cd/*.{html,ocd,omcd} cdgroups/*.{cdg,html} sts/*.{sts,html}
4323
git commit -a -m "from travis ci: $NEW_MSG" || echo no changes
4424
git push

0 commit comments

Comments
 (0)