diff --git a/README.md b/README.md index c9db143..0a5cde1 100644 --- a/README.md +++ b/README.md @@ -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, diff --git a/README.中文.md b/README.中文.md index 37b005b..54ed0f0 100644 --- a/README.中文.md +++ b/README.中文.md @@ -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`: diff --git a/www/install.sh b/www/install.sh index bfda6ba..49c7113 100755 --- a/www/install.sh +++ b/www/install.sh @@ -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