Skip to content
Snippets Groups Projects
Commit d5348589 authored by Zihao Yu's avatar Zihao Yu
Browse files

init.sh: use readlink to get absolute path

* ubuntu may not have realpath installed by default
parent ae4e3e77
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ function init() {
if test $2; then
sed -i -e "/^export $2=.*/d" ~/.bashrc
echo "export $2=`realpath $1`" >> ~/.bashrc
echo "export $2=`readlink -e $1`" >> ~/.bashrc
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment