Skip to content

Commit 951765e

Browse files
authored
update gh path within downloaded archive (#712)
1 parent b8c5423 commit 951765e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/download-gh.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@ echo "Downloading github.com/cli/cli@v${version} ..."
5050

5151
mkdir -p "${dir_path}"
5252
cd "${dir_path}"
53+
archive_path="gh_${version}_${os}_${arch}/bin"
54+
gh_archive_path="${archive_path}/gh"
5355
wget https://github.com/cli/cli/releases/download/v${version}/gh_${version}_${os}_${arch}.tar.gz -O - | \
54-
tar xzf - gh
56+
tar xzf - "${gh_archive_path}"
57+
mv "${gh_archive_path}" .
58+
rmdir -p "${archive_path}"

0 commit comments

Comments
 (0)