Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
743be0c
)
Create plugins/enabled directory if it doesn't already exist
author
Dave Paroulek
<upgradingdave@gmail.com>
Mon, 25 Mar 2013 12:36:27 +0000
(08:36 -0400)
committer
Dave Paroulek
<upgradingdave@gmail.com>
Mon, 25 Mar 2013 12:36:27 +0000
(08:36 -0400)
- 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.
lib/helpers.bash
patch
|
blob
|
history
diff --git
a/lib/helpers.bash
b/lib/helpers.bash
index
e1787fe
..
b99ae3d
100644
(file)
--- a/
lib/helpers.bash
+++ b/
lib/helpers.bash
@@
-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