File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -163,12 +163,22 @@ git commit -m "Stage framework" --no-verify > /dev/null
163
163
164
164
# Check for a specific requested version
165
165
if [ " $TARGET_VERSION " ]; then
166
- composer require --no-scripts --with-all-dependencies " $PACKAGE " " $TARGET_VERSION "
166
+ OUTPUT= $( composer require --no-scripts --with-all-dependencies " $PACKAGE " " $TARGET_VERSION " 2>&1 )
167
167
# Otherwise get the latest
168
168
else
169
- composer update --no-scripts --with-all-dependencies " $PACKAGE "
169
+ OUTPUT= $( composer update --no-scripts --with-all-dependencies " $PACKAGE " 2>&1 )
170
170
fi
171
171
172
+ for LINE in " $OUTPUT " ; do
173
+ echo " $LINE \n"
174
+ if command -v sed > /dev/null 2>&1 ; then
175
+ TMP=$( echo $LINE | grep " $PACKAGE " | sed -n ' s/.*(\(v[0-9]*\.[0-9]*\.[0-9]* => v[0-9]*\.[0-9]*\.[0-9]*\)).*/\1/p' )
176
+ if [ -n " $TMP " ]; then
177
+ FROMTO=" ($TMP )"
178
+ fi
179
+ fi
180
+ done
181
+
172
182
# Wipe out the current versions and copy in the new
173
183
for ITEM in $ITEMS ; do
174
184
rm -rf " $ITEM "
178
188
# Add everything but the modified Composer files
179
189
git add .
180
190
git reset composer.*
181
- git commit -m " Patch framework" --no-verify
191
+ git commit -m " Patch framework $FROMTO " --no-verify
182
192
183
193
# Get rid of the now-corrupt Composer files
184
194
rm composer.*
You can’t perform that action at this time.
0 commit comments