Permalink
Browse files

Create plugins/enabled directory if it doesn't already exist

- This fixes a bug I saw after installing bash-it on Mac OS X 10.6.8.
  During bash-it installation I chose not to install any plugins. After
  install, when `bash-it enable plugin foo` was complaining that the
  enabled directory did not exist.
  • Loading branch information...
1 parent 743be0c commit 75dbdaf2742d874f8254cd908db36808eb890fe2 @upgradingdave upgradingdave committed Mar 25, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/helpers.bash
View
@@ -277,6 +277,8 @@ _enable-thing ()
return
fi
+ mkdir -p $BASH_IT/$subdirectory/enabled
+
ln -s $BASH_IT/$subdirectory/available/$plugin $BASH_IT/$subdirectory/enabled/$plugin
fi

0 comments on commit 75dbdaf

Please sign in to comment.