Skip to content

Commit

Permalink
Merge branch 'v2-copy-cache' into v2
Browse files Browse the repository at this point in the history
* v2-copy-cache:
  Copy ac index over to cache dir on postinstall
  • Loading branch information
jamesls committed Nov 26, 2018
2 parents eec9fd1 + 8400468 commit 8bae3a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion macpkg/scripts/postinstall
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
sudo mkdir -p /usr/local/bin

sudo ln -sf /usr/local/aws/aws /usr/local/bin/aws
sudo ln -sf /usr/local/aws/aws_completer /usr/local/bin/aws_completer

CLI_VERSION=$(/usr/local/bin/aws --version | cut -d' ' -f 1 | cut -d'/' -f 2)
mkdir -p ~/.aws/cli/cache
cp /usr/local/aws/awscli/data/ac.index ~/.aws/cli/cache/$CLI_VERSION.index

0 comments on commit 8bae3a2

Please sign in to comment.