[issue431] wm-ng on grml-medium 0.1

Michael Prokop bts at bts.grml.org
Sun Feb 15 16:52:20 CET 2009


Michael Prokop <mika at grml.org> added the comment:

* Frank Terbeck <bts at bts.grml.org> [20090215 14:11]:

> Let's face it, I'm an idiot. :-)
> Missed one improvement I mentioned earlier (the '&& break').

> [snip]
> is_installed() {
>     prog="$1"
>     [ -z "$prog" ] && return 1

>     ret=1
>     oifs="$IFS"
>     IFS=:
>     for dir in $PATH; do
>         [ -z "$dir" ] && continue
>         [ -x "$dir/$prog" ] && ret=0 && break
>     done

>     IFS="$oifs"
>     unset oifs
>     return "$ret"
> }
> [snap]

> [...]
> > So, I'm happy with this now.

> No, now I am. :)

Cool. thanks! Applied and pushed:

  http://git.grml.org/?p=grml-scripts.git;a=commit;h=7760a19        Add ist_installed(), thanks ft! | 2009-02-15 16:51:19 +0100

regards,
-mika-

----------
assignedto: mika
messages: 1244, 1245, 1876, 1877, 1881, 1883, 1884, 1887, 1888, 1889, 1892, 1893, 1894
nosy: ft, maddi, mika
priority: bug
status: in-progress
title: wm-ng on grml-medium 0.1
topic: release-stopper

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue431>
_____________________________________


More information about the Bugs-changes mailing list