File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,8 +148,8 @@ jobs:
148148
149149 - name : Update linux/svtminion.sh sha256sum's
150150 run : |
151- sha256sum linux/svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
152- sha256sum windows/svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
151+ sha256sum linux/svtminion.sh > svtminion.sh.sha256
152+ sha256sum windows/svtminion.ps1 > svtminion.ps1.sha256
153153 git add svtminion.sh.sha256
154154 git add svtminion.ps1.sha256
155155 git commit --allow-empty -am "Update sha256 checksums" || git commit --allow-empty -am "Update sha256 checksums"
Original file line number Diff line number Diff line change @@ -16,23 +16,21 @@ def main(version, sha256sum):
1616 out_contents = ""
1717 found_anchor = False
1818 updated_version = False
19- if version not in in_contents :
20- for line in in_contents .splitlines (True ):
21- if updated_version :
22- out_contents += line
23- continue
24- if found_anchor :
25- if not line .startswith ("-" ):
26- out_contents += line
27- continue
28- out_contents += f"- { version } : `{ sha256sum } `\n "
19+ for line in in_contents .splitlines (True ):
20+ if updated_version :
21+ out_contents += line
22+ continue
23+ if found_anchor :
24+ if not line .startswith ("-" ):
2925 out_contents += line
30- updated_version = True
3126 continue
32-
27+ out_contents += f"- { version } : ` { sha256sum } ` \n "
3328 out_contents += line
34- if line .startswith ("## _sha256sums:" ):
35- found_anchor = True
29+ updated_version = True
30+ continue
31+ if line .startswith ("## _sha256sums:" ):
32+ found_anchor = True
33+ out_contents += line
3634 if in_contents != out_contents :
3735 README_PATH .write_text (out_contents )
3836
Original file line number Diff line number Diff line change 1414Name Nick Email
1515========================== ===================== ============================
1616David Murphy david david-dm.murphy@broadcom.com
17- Shane Lee twangboy share .lee@broadcom.com
17+ Shane Lee twangboy shane .lee@broadcom.com
You can’t perform that action at this time.
0 commit comments