Use more secure cURL options in install.sh (#1416)

This commit is contained in:
Casey Rodarmor 2022-11-18 20:42:17 -08:00 committed by GitHub
parent 38a5481cbb
commit 56feaeedc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ if [ -z ${dest-} ]; then
fi fi
if [ -z ${tag-} ]; then if [ -z ${tag-} ]; then
tag=$(curl -s "https://api.github.com/repos/casey/just/releases/latest" | tag=$(curl --proto =https --tlsv1.2 -sSf https://api.github.com/repos/casey/just/releases/latest |
grep tag_name | grep tag_name |
cut -d'"' -f4 cut -d'"' -f4
) )
@ -130,7 +130,7 @@ say_err "Destination: $dest"
say_err "Archive: $archive" say_err "Archive: $archive"
td=$(mktemp -d || mktemp -d -t tmp) td=$(mktemp -d || mktemp -d -t tmp)
curl -sL $archive | tar -C $td -xz curl --proto =https --tlsv1.2 -sSfL $archive | tar -C $td -xz
for f in $(ls $td); do for f in $(ls $td); do
test -x $td/$f || continue test -x $td/$f || continue