File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ var() {
41
41
update () {
42
42
file=$1
43
43
msg=$2
44
+ exe=$3
44
45
test " $msg " || msg=" Travis: update $file "
45
46
if [ -e " $file " ]
46
47
then
@@ -59,6 +60,11 @@ update() {
59
60
fi
60
61
rm -rf " $tmpFile "
61
62
$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
62
68
$EXEC git diff-index --quiet HEAD -- || $EXEC git commit -m " $msg "
63
69
}
64
70
@@ -135,7 +141,7 @@ curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/trav
135
141
sh travis-build.sh
136
142
EOL
137
143
chmod +x " $tmpFile "
138
- update " $travisBuildScript "
144
+ update " $travisBuildScript " " Travis: add executable script $travisBuildScript " " true "
139
145
140
146
# Remove obsolete Travis-related files.
141
147
if [ -f " $travisSettingsFile " ]
You can’t perform that action at this time.
0 commit comments