jergason/badoop — pull request #1 by dominictarr (2012-08-11 13:39:53+00:00)
Title: fix on linux, & make installable by npm.

Made a few small fixes so this worked for me on linux.

The most reliable way to test if a var is set is `"[[x$VAR" = x]]`.
This works in nearly every variant of bash, I understand.

Also, it's important to quote variables.
This keeps the contents of the variable in one position,
Otherwise, if there is a space, bash will think that it is two arguments, not one.

Also, I've made this installable with npm.
npm is good at managing your bash scripts.
you should publish it.

cheers, Dominic