Commit 0f2a492 1 parent db7102e commit 0f2a492 Copy full SHA for 0f2a492
File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 3
3
token=$( git config --global github.token)
4
4
5
5
json=$( http https://api.github.com/repos/indigo-dc/oidc-agent/releases/latest " Authorization: Bearer ${token} " )
6
- tag=$( echo $json | jq -r ' .tag_name' )
6
+ tag=$( echo " $json " | jq -r ' .tag_name' )
7
7
version=${tag/# v/ }
8
8
9
- $( dirname $0 ) /updateToRelease.sh $version $1
9
+ " $( dirname " $0 " ) " /updateToRelease.sh " $version " " $1 "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
token=$( git config --global github.token)
4
+ export token
4
5
5
6
version=$1
6
7
tag=" v$version "
7
8
formula=$2
8
9
9
10
git checkout -b " $version "
10
11
11
- tar_url=$( echo " https://github.com/indigo-dc/oidc-agent/archive/refs/tags/VTAG.tar.gz" | sed " s/VTAG/" ${tag} " /g" )
12
- sha256=$( curl -L $tar_url 2> /dev/null| sha256sum | awk ' {print $1}' )
12
+ tar_url=$( echo " https://github.com/indigo-dc/oidc-agent/archive/refs/tags/VTAG.tar.gz" | sed \ " s/VTAG/" ${tag} " /g\ ")
13
+ sha256=$( curl -L " $tar_url " 2> /dev/null| sha256sum | awk ' {print $1}' )
13
14
14
- sed -i " s!^[[:space:]]*url\ \" .*\" ! url\ \" ${tar_url} \" !g" $formula
15
- sed -i " s/sha256\ \" .*\" /sha256\ \" ${sha256} \" /g" $formula
15
+ sed -i " s!^[[:space:]]*url\ \" .*\" ! url\ \" ${tar_url} \" !g" " $formula "
16
+ sed -i " s/sha256\ \" .*\" /sha256\ \" ${sha256} \" /g" " $formula "
16
17
17
18
echo " Updated url to: ${tar_url} "
18
19
echo " Updated sha256 to: ${sha256} "
19
20
20
21
git add " $formula "
21
- git commit -m " " ${version} " "
22
+ git commit -m \ "" ${version} " \ "
You can’t perform that action at this time.
0 commit comments