Use more secure cURL options in install.sh (#1416)
This commit is contained in:
parent
38a5481cbb
commit
56feaeedc3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user