Update install script and readmes to use tls v1.3 (#1481)
This commit is contained in:
parent
45e633ca89
commit
9b6b0b7fac
@ -253,7 +253,7 @@ Pre-built binaries for Linux, MacOS, and Windows can be found on [the releases p
|
||||
You can use the following command on Linux, MacOS, or Windows to download the latest release, just replace `DEST` with the directory where you'd like to put `just`:
|
||||
|
||||
```sh
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to DEST
|
||||
curl --proto '=https' --tlsv1.3 -sSf https://just.systems/install.sh | bash -s -- --to DEST
|
||||
```
|
||||
|
||||
For example, to install `just` to `~/bin`:
|
||||
@ -263,7 +263,7 @@ For example, to install `just` to `~/bin`:
|
||||
mkdir -p ~/bin
|
||||
|
||||
# download and extract just to ~/bin/just
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin
|
||||
curl --proto '=https' --tlsv1.3 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin
|
||||
|
||||
# add `~/bin` to the paths that your shell searches for executables
|
||||
# this line should be added to your shells initialization file,
|
||||
|
@ -251,7 +251,7 @@ Linux、MacOS 和 Windows 的预制二进制文件可以在 [发布页](https://
|
||||
你也可以在 Linux、MacOS 或 Windows 上使用下面的命令来下载最新的版本,只需将 `DEST` 替换为你想安装 `just` 的目录即可:
|
||||
|
||||
```sh
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to DEST
|
||||
curl --proto '=https' --tlsv1.3 -sSf https://just.systems/install.sh | bash -s -- --to DEST
|
||||
```
|
||||
|
||||
例如,安装 `just` 到 `~/bin` 目录:
|
||||
@ -261,7 +261,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -
|
||||
mkdir -p ~/bin
|
||||
|
||||
# 下载并解压 just 到 ~/bin/just
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin
|
||||
curl --proto '=https' --tlsv1.3 -sSf https://just.systems/install.sh | bash -s -- --to ~/bin
|
||||
|
||||
# 在 Shell 搜索可执行文件的路径中添加`~/bin`
|
||||
# 这一行应该被添加到你的 Shell 初始化文件中,e.g. `~/.bashrc` 或者 `~/.zshrc`:
|
||||
|
@ -102,7 +102,7 @@ if [ -z ${dest-} ]; then
|
||||
fi
|
||||
|
||||
if [ -z ${tag-} ]; then
|
||||
tag=$(curl --proto =https --tlsv1.2 -sSf https://api.github.com/repos/casey/just/releases/latest |
|
||||
tag=$(curl --proto =https --tlsv1.3 -sSf https://api.github.com/repos/casey/just/releases/latest |
|
||||
grep tag_name |
|
||||
cut -d'"' -f4
|
||||
)
|
||||
@ -147,10 +147,10 @@ td=$(mktemp -d || mktemp -d -t tmp)
|
||||
|
||||
if [ "$extension" = "zip" ]; then
|
||||
# unzip on windows cannot always handle stdin, so download first.
|
||||
curl --proto =https --tlsv1.2 -sSfL $archive > $td/just.zip
|
||||
curl --proto =https --tlsv1.3 -sSfL $archive > $td/just.zip
|
||||
unzip -d $td $td/just.zip
|
||||
else
|
||||
curl --proto =https --tlsv1.2 -sSfL $archive | tar -C $td -xz
|
||||
curl --proto =https --tlsv1.3 -sSfL $archive | tar -C $td -xz
|
||||
fi
|
||||
|
||||
for f in $(ls $td); do
|
||||
|
Loading…
Reference in New Issue
Block a user