mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-31 01:20:20 +00:00
Windows GitHub release hotfix
Improve id variable parsing and print release.json to catch error
This commit is contained in:
parent
c3709fa744
commit
cd94d9849d
@ -23,7 +23,8 @@ curl -s \
|
|||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
--data "$(generate_post_data)" "https://api.github.com/repos/$repo_full_name/releases" >> release.json
|
--data "$(generate_post_data)" "https://api.github.com/repos/$repo_full_name/releases" >> release.json
|
||||||
|
|
||||||
id=$(grep '"id"' release.json | cut -d ' ' -f4 | head -n1)
|
cat release.json
|
||||||
|
id=$(grep '"id"' release.json | cut -d ':' -f2 | head -n1 | awk '{$1=$1;print}')
|
||||||
id=${id%?}
|
id=${id%?}
|
||||||
echo ${id:?}
|
echo ${id:?}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user