We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8c5423 commit 951765eCopy full SHA for 951765e
scripts/download-gh.sh
@@ -50,5 +50,9 @@ echo "Downloading github.com/cli/cli@v${version} ..."
50
51
mkdir -p "${dir_path}"
52
cd "${dir_path}"
53
+archive_path="gh_${version}_${os}_${arch}/bin"
54
+gh_archive_path="${archive_path}/gh"
55
wget https://github.com/cli/cli/releases/download/v${version}/gh_${version}_${os}_${arch}.tar.gz -O - | \
- tar xzf - gh
56
+ tar xzf - "${gh_archive_path}"
57
+mv "${gh_archive_path}" .
58
+rmdir -p "${archive_path}"
0 commit comments