Installing in relative path installs broken symlinks
- Dominant language
- Python
- Stars
- 17.3k
- Forks
- 4.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 13
Description
### Describe the bug
Followed the linux installation steps with `-i` and `-b` option, but symlinks seem broken. I am unable to run `aws` after install. It is failing with "No such file or directory"
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
It seems similar issue has been reported in this thread here too. https://www.reddit.com/r/Ubuntu/comments/hdrfly/aws_cli_command_not_working_when_installed_local/fvn1umn/
### Expected Behavior
can run aws command.
### Current Behavior
```
$ ./aws/install -i ./aws-cli -b ./aws-cli/bin --update
You can now run: ./aws-cli/bin/aws --version
$ ls -lad ./aws-cli/bin/aws
lrwxrwxrwx 1 root root 28 Apr 6 05:04 ./aws-cli/bin/aws -> ./aws-cli/v2/current/bin/aws
$ ls -lad ./aws-cli/v2/current
lrwxrwxrwx 1 root root 18 Apr 6 05:04 ./aws-cli/v2/current -> ./aws-cli/v2/2.5.2
$ ./aws-cli/bin/aws --version
/usr/bin/bash: line 140: ./aws-cli/bin/aws: No such file or directory
```
### Reproduction Steps
```bash
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install -i ./aws-cli -b ./aws-cli/bin --update
```
### Possible Solution
`./aws-cli/v2/2.5.2/bin/aws` this seems working when calling directly.
### Additional Information/Context
_No response_
### CLI version used
V2
### Environment details (OS name and version, etc.)
ubuntu:20.04
Contributor guide
Assessment
This issue has not been assessed yet.