Skip to content

Commit

Permalink
Update azure_cli_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
joy-joel authored Sep 29, 2023
1 parent d02478b commit 2a4e682
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions azure_cli_setup
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,19 @@ install_azure_cli() {
\apt-get install -q openssl libffi make &&
\apt-get install -q openssh &&
\pip install --user virtualenv


PATH=$PATH:~/.local/bin
export PATH

# Add the PATH commands to .bashrc
echo 'PATH=$PATH:~/.local/bin' >> ~/.bashrc
echo 'export PATH' >> ~/.bashrc

cat << EOF > ~/.bashrc
PATH=$PATH:~/.local/bin
export PATH
EOF
# Reload .bashrc to apply changes immediately
source ~/.bashrc


source ~/.bashrc
virtualenv ~/.local/lib/azure-cli
cd ~/.local/lib/azure-cli
Expand Down

0 comments on commit 2a4e682

Please sign in to comment.