diff --git a/edit b/edit index d38a3ea..713fd87 100755 --- a/edit +++ b/edit @@ -12,5 +12,10 @@ export NODE_ENV=production export TUTORIAL_EDIT=1 export NODE_PRESERVE_SYMLINKS=1 +# Use a local bunyan if no other is found in the current environment +if ! [ -x "$(command -v bunyan)" ]; then + export PATH="$PATH:./node_modules/bunyan/bin" +fi + npm --silent run -- gulp edit | bunyan -o short -l debug