File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ var() {
4141update () {
4242 file=$1
4343 msg=$2
44+ exe=$3
4445 test " $msg " || msg=" Travis: update $file "
4546 if [ -e " $file " ]
4647 then
@@ -59,6 +60,11 @@ update() {
5960 fi
6061 rm -rf " $tmpFile "
6162 $EXEC git add " $file "
63+ if [ -n " $exe " ]
64+ then
65+ info " Adding execute permission to $file "
66+ $EXEC git update-index --chmod=+x " $file "
67+ fi
6268 $EXEC git diff-index --quiet HEAD -- || $EXEC git commit -m " $msg "
6369}
6470
@@ -135,7 +141,7 @@ curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/trav
135141sh travis-build.sh
136142EOL
137143 chmod +x " $tmpFile "
138- update " $travisBuildScript "
144+ update " $travisBuildScript " " Travis: add executable script $travisBuildScript " " true "
139145
140146 # Remove obsolete Travis-related files.
141147 if [ -f " $travisSettingsFile " ]
You can’t perform that action at this time.
0 commit comments