Skip to content

Commit da6b984

Browse files
committed
Fix awscli path on RHEL
1 parent 7525c4d commit da6b984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.buildkite/scripts/install-awscli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
2323
curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-${ARCH}.zip" -o "awscliv2.zip"
2424
unzip -q awscliv2.zip
2525
sudo ./aws/install
26-
if ! command -v aws; then
27-
export PATH="/usr/local/bin:${PATH}"
26+
if ! command -v aws; then # on RHEL, /usr/local/bin isn't in the PATH
27+
sudo ln -s /usr/local/bin/aws /usr/bin/aws
2828
fi
2929
elif [[ "$OSTYPE" == "darwin"* ]]; then
3030
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"

0 commit comments

Comments
 (0)