Skip to content

Commit

Permalink
Translation of add_var_to_bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
dutrevis committed Jan 19, 2021
1 parent 511b43d commit c142b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stack_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
add_var_to_bashrc() {
if ! grep -q "$1=" ~/.bashrc; then
printf "export $1=$2\n" >> ~/.bashrc
printf "Variável '$1' adicionada ao arquivo '~/.bashrc'.\n"
printf "Variable '$1' added into file '~/.bashrc'.\n"
else
printf "Variável '$1' já existe no arquivo '~/.bashrc':"
printf "Variable '$1' already exists in file '~/.bashrc':"
printf "\n\n$(grep "$1=" ~/.bashrc)\n\n"
fi
}
Expand Down

0 comments on commit c142b19

Please sign in to comment.