Skip to content

Commit 9ebd86d

Browse files
committed
last bit of tweaking for macos
1 parent 41c812f commit 9ebd86d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ install_v2_macos_bundled_installer() {
185185
download_path="$1"
186186
install_path="$2"
187187

188-
pkgutil --expand-full "${download_path}/AWSCLIV2.pkg" "${download_path}/tmp-awscliv2"
189-
mv "${download_path}/tmp-awscliv2/aws-cli.pkg/Payload/aws-cli" "${install_path}"
190188
mkdir -p "${install_path}/bin"
189+
pkgutil --expand-full "${download_path}/AWSCLIV2.pkg" "${download_path}/tmp-awscliv2"
190+
cp -a "${download_path}/tmp-awscliv2/aws-cli.pkg/Payload/aws-cli/" "${install_path}"
191191
ln -snf "${install_path}/aws" "${install_path}/bin/aws"
192192
ln -snf "${install_path}/aws_completer" "${install_path}/bin/aws_completer"
193193
rm -rf "${download_path}/tmp-awscliv2"

0 commit comments

Comments
 (0)