Skip to content

Commit

Permalink
Use more secure cURL options in install.sh (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Nov 19, 2022
1 parent 38a5481 commit 56feaee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if [ -z ${dest-} ]; then
fi

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 |
cut -d'"' -f4
)
Expand Down Expand Up @@ -130,7 +130,7 @@ say_err "Destination: $dest"
say_err "Archive: $archive"

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
test -x $td/$f || continue
Expand Down

0 comments on commit 56feaee

Please sign in to comment.