question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI installer inappropriately updates my bash_profile

See original GitHub issue

I’ve run the amplify installer script a few times. Now, in my ~/.bash_profile I see:

jhwill@9801a7a9c383:~$ cat ~/.bash_profile 
. ~/.bashrc


# Added by Amplify CLI binary installer
export PATH="$HOME/.amplify/bin:$PATH"

# Added by Amplify CLI binary installer
export PATH="$HOME/.amplify/bin:$PATH"

# Added by Amplify CLI binary installer
export PATH="$HOME/.amplify/bin:$PATH"

# Added by Amplify CLI binary installer
export PATH="$HOME/.amplify/bin:$PATH"

It should either not update my dot files, or it should ensure only one entry is present.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
edwardfoylecommented, Jan 5, 2021

@jamesonwilliams Once you have installed the packaged CLI once, you should use amplify upgrade to install newer versions. This command will not add duplicates to your bash_profile. However, we can add some logic to prevent the duplicates

0reactions
github-actions[bot]commented, Jun 6, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting AWS CLI errors - AWS Command Line Interface
This error means that the operating system can't find the AWS CLI command. The installation might be incomplete or requires updating. Possible cause:...
Read more >
How to reload .bash_profile from the command line
Simply type source ~/.bash_profile . Alternatively, if you like saving keystrokes, you can type . ~/.bash_profile .
Read more >
Installing the AWS CLI in MacOS Monterey and Big Sur
Installing the AWS CLI in macOS Catalina. Laptop With AWS Logo. This process works on macOS 10.13 or newer, including macOS 12 Monterey....
Read more >
My .bash_profile (how I have emojis in my terminal) - YouTube
You can find my . bash_profile here: https://github.com/kentcdodds/dotfiles/blob/master/. bash_profile.
Read more >
How to get a notification when my commands are done
There's a tool called terminal-notifier that you can download or install using Homebrew ... in the terminal being done, add an alias to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found