Plaque-fcc/luakit-adblock — pull request #5 by Szunti (2012-08-10 21:29:53+00:00)
Title: Cleanup double cd when the adblock directory found in adblock-update.sh

Sorry for posting on wrong repo:

> 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.