Skip to content

Commit

Permalink
Build the plugins if any are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Nov 1, 2017
1 parent d6fb20d commit 068da11
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/testdev
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ preflight() {
echo "RUNNING testdev PRE-FLIGHT CHECKS"
echo

echo "checking for plugins..."
plugins=$(sed -n '/^plugins:/,/^ *$/{//!p}' $(dirname $0)/../Makefile | sed -e 's/.*plugin\///')
missing='';
for plugin in $plugins; do
if [[ ! -f $(dirname $0)/../$plugin ]]; then
echo " - $plugin missing"
missing=true
fi
done
if [[ -n "$missing" ]] ; then
echo "making missing plugins"
(cd $(dirname $0)/.. && make plugins)
echo "done."
echo ""
fi

echo "checking for tmux..."
if ! type tmux &>/dev/null; then
echo
Expand Down

0 comments on commit 068da11

Please sign in to comment.