[systemd-devel] [PATCH 2/2] kernel-install: add compat with 'installkernel'

Dave Reisner d at falconindy.com
Sun Sep 29 06:10:32 PDT 2013


On Sep 29, 2013 6:40 AM, "Jan Engelhardt" <jengelh at inai.de> wrote:
>
> On Thursday 2013-09-26 00:38, Tom Gundersen wrote:
>
> >+if [[ `basename $0` == 'installkernel' ]]; then
>
> Lack of quoting - bad bad bad.
> Why not just write ${0##*/} ?

Quoting doesn't matter on the lhs here. Agree with the idiom in place of
using basename, though.

> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130929/95f326cc/attachment.html>


More information about the systemd-devel mailing list