File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -504,19 +504,21 @@ create_script() {
504
504
cd " $CHROMIUM_DIR "
505
505
info " [Chromium] Create patch script"
506
506
# Get the tags
507
- OLD_TAG_SHA=` git log -1 --format=format:" %H" ${OLD_TAG} `
508
- HEAD_SHA=` git log -1 --format=format:" %H" HEAD`
507
+ OLD_TAG_SHA=$( git log -1 --format=format:" %H" ${OLD_TAG} )
508
+ HEAD_SHA=$( git log -1 --format=format:" %H" HEAD)
509
509
510
510
# Get all the commits
511
- git log --ancestry-path ${OLD_TAG_SHA} .. ${HEAD_SHA} --pretty=format:" git cherry-pick --strategy=recursive -X patience %h%x09 # %ae%x09%ad%x09%s" > commit_log.txt
511
+ git log --ancestry-path " ${OLD_TAG_SHA} " .. " ${HEAD_SHA} " --pretty=format:" git cherry-pick --strategy=recursive -X patience %h%x09 # %ae%x09%ad%x09%s" > commit_log.txt
512
512
echo -e ' \n' >> commit_log.txt
513
513
tac commit_log.txt > cherry_pick_log.txt
514
514
515
515
# Create the readme script
516
- echo -e ' #!/bin/bash' > $README_FILENAME
517
- echo -e ' set -e\n' >> $README_FILENAME
518
- echo -e " # Based on branch: ${OLD_BRANCH} " >> $README_FILENAME
519
- cat cherry_pick_log.txt >> $README_FILENAME
516
+ {
517
+ echo -e ' #!/bin/bash'
518
+ echo -e ' set -e\n'
519
+ echo -e " # Based on branch: ${OLD_BRANCH} "
520
+ cat cherry_pick_log.txt
521
+ } > $README_FILENAME
520
522
521
523
rm commit_log.txt cherry_pick_log.txt
522
524
mv $README_FILENAME " ${CHROMIUM_UPDATE_DIR} " /updates/${README_FILENAME}
You can’t perform that action at this time.
0 commit comments