fix invalid argument for MacOS
This commit is contained in:
parent
4b0d7562e7
commit
ca1efe654c
1 changed files with 1 additions and 1 deletions
2
init.sh
2
init.sh
|
@ -3,7 +3,7 @@
|
|||
# usage: addenv env_name path
|
||||
function addenv() {
|
||||
sed -i -e "/^export $1=.*/d" ~/.bashrc
|
||||
echo "export $1=`readlink -e $2`" >> ~/.bashrc
|
||||
echo "export $1=`readlink -f $2`" >> ~/.bashrc
|
||||
echo "By default this script will add environment variables into ~/.bashrc."
|
||||
echo "After that, please run 'source ~/.bashrc' to let these variables take effect."
|
||||
echo "If you use shell other than bash, please add these environment variables manually."
|
||||
|
|
Loading…
Reference in a new issue