install.sh: Updates

This commit is contained in:
Anmol Sethi 2022-12-06 04:25:02 -08:00
parent 70587d5832
commit 44ba6ecce4
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA
4 changed files with 5 additions and 5 deletions

View file

@ -497,7 +497,7 @@ fetch_release_info() {
else else
release_info_url="https://api.github.com/repos/$REPO/releases/tags/$VERSION" release_info_url="https://api.github.com/repos/$REPO/releases/tags/$VERSION"
fi fi
fetch_gh "$release_info_url" "$RELEASE_INFO" \ DRY_RUN= fetch_gh "$release_info_url" "$RELEASE_INFO" \
'application/json' 'application/json'
VERSION=$(cat "$RELEASE_INFO" | grep -m1 tag_name | sed 's/^.*: "\(.*\)",$/\1/g') VERSION=$(cat "$RELEASE_INFO" | grep -m1 tag_name | sed 's/^.*: "\(.*\)",$/\1/g')
} }

View file

@ -65,7 +65,7 @@ temp_exittrap() {
temppath() { temppath() {
ensure_tmpdir ensure_tmpdir
while true; do while true; do
temppath=$_TMPDIR/$(</dev/urandom head -c8 | base64) temppath=$_TMPDIR/$(</dev/urandom head -c8 | base32)
if [ ! -e "$temppath" ]; then if [ ! -e "$temppath" ]; then
echo "$temppath" echo "$temppath"
return return

2
ci/sub

@ -1 +1 @@
Subproject commit 4c26167bafbb6b4d038004c7e7666b2533a882d3 Subproject commit 66692a2f312d37a41de6b505842637f644a65eb1

View file

@ -70,7 +70,7 @@ temp_exittrap() {
temppath() { temppath() {
ensure_tmpdir ensure_tmpdir
while true; do while true; do
temppath=$_TMPDIR/$(</dev/urandom head -c8 | base64) temppath=$_TMPDIR/$(</dev/urandom head -c8 | base32)
if [ ! -e "$temppath" ]; then if [ ! -e "$temppath" ]; then
echo "$temppath" echo "$temppath"
return return
@ -1079,7 +1079,7 @@ fetch_release_info() {
else else
release_info_url="https://api.github.com/repos/$REPO/releases/tags/$VERSION" release_info_url="https://api.github.com/repos/$REPO/releases/tags/$VERSION"
fi fi
fetch_gh "$release_info_url" "$RELEASE_INFO" \ DRY_RUN= fetch_gh "$release_info_url" "$RELEASE_INFO" \
'application/json' 'application/json'
VERSION=$(cat "$RELEASE_INFO" | grep -m1 tag_name | sed 's/^.*: "\(.*\)",$/\1/g') VERSION=$(cat "$RELEASE_INFO" | grep -m1 tag_name | sed 's/^.*: "\(.*\)",$/\1/g')
} }