mason-larobina/luakit-plugins — pull request #1 by Szunti (2012-08-10 18:44:18+00:00)
Title: Cleanup double cd when the adblock directory found.

It's just a really minor thing.

In bash, '||' and '&&' has the same precedence, so the line

[[ -d "$DATADIR/luakit/adblock/" ]] && cd "$DATADIR/luakit/adblock/" || mkdir "$DATADIR/luakit/adblock/" && cd "$DATADIR/luakit/adblock/"

will `cd` into the adblock dir twice if it exist.
I think

[[ -d "$DATADIR/luakit/adblock/" ]] || mkdir "$DATADIR/luakit/adblock/" && cd "$DATADIR/luakit/adblock/"

was intended here.