Permalink
Browse files

create bash_profile if not exist when run on mac osx

  • Loading branch information...
1 parent 5a4c39a commit 08e3f855ca37df6ba6a4e5bd1b2fd21881b2ec42 @dangoakachan committed Sep 5, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 install_markrc.sh
View
@@ -2,6 +2,11 @@
cp markrc ~/.markrc
+# If os is Mac OSX, create .bash_profile if not exist
+if [ "$(uname)" = "Darwin" ]; then
+ touch ~/.bash_profile
+fi
+
if [ -f ~/.bash_profile ]; then
if ! grep -sq markrc ~/.bash_profile; then
echo '[ -f ~/.markrc ] && source ~/.markrc' >> ~/.bash_profile

0 comments on commit 08e3f85

Please sign in to comment.