File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 191
191
if [ $VERBOSE -eq 1 ]; then
192
192
echo -n " creating superproject archive..."
193
193
fi
194
+ rm -f $TMPDIR /$( basename " $( pwd) " ) .$FORMAT
194
195
git archive --format=$FORMAT --prefix=" $PREFIX " $TREEISH > $TMPDIR /$( basename " $( pwd) " ) .$FORMAT
195
196
if [ $VERBOSE -eq 1 ]; then
196
197
echo " done"
222
223
while read path; do
223
224
TREEISH=$( git submodule | grep " ^ .*${path%/ } " | cut -d ' ' -f 2) # git submodule does not list trailing slashes in $path
224
225
cd " $path "
226
+ rm -f " $TMPDIR " /" $( echo " $path " | sed -e ' s/\//./g' ) " $FORMAT
225
227
git archive --format=$FORMAT --prefix=" ${PREFIX} $path " ${TREEISH:- HEAD} > " $TMPDIR " /" $( echo " $path " | sed -e ' s/\//./g' ) " $FORMAT
226
228
if [ $FORMAT == ' zip' ]; then
227
229
# delete the empty directory entry; zipped submodules won't unzip if we don't do this
228
- zip -d " $( tail -n 1 $TMPFILE ) " " ${PREFIX}${path%/ } " > /dev/null # remove trailing '/'
230
+ zip -d " $( tail -n 1 $TMPFILE ) " " ${PREFIX}${path%/ } " > /dev/null 2>&1 || true # remove trailing '/'
229
231
fi
230
232
echo " $TMPDIR " /" $( echo " $path " | sed -e ' s/\//./g' ) " $FORMAT >> $TMPFILE
231
233
cd " $OLD_PWD "
You can’t perform that action at this time.
0 commit comments