Skip to content

Commit 8bae3a2

Browse files
committed
Merge branch 'v2-copy-cache' into v2
* v2-copy-cache: Copy ac index over to cache dir on postinstall
2 parents eec9fd1 + 8400468 commit 8bae3a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

macpkg/scripts/postinstall

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22
sudo mkdir -p /usr/local/bin
3-
43
sudo ln -sf /usr/local/aws/aws /usr/local/bin/aws
54
sudo ln -sf /usr/local/aws/aws_completer /usr/local/bin/aws_completer
5+
6+
CLI_VERSION=$(/usr/local/bin/aws --version | cut -d' ' -f 1 | cut -d'/' -f 2)
7+
mkdir -p ~/.aws/cli/cache
8+
cp /usr/local/aws/awscli/data/ac.index ~/.aws/cli/cache/$CLI_VERSION.index

0 commit comments

Comments
 (0)