[haiku-commits] Re: r35412 - haiku/trunk/build/scripts

On 2010-02-05 at 10:28:41 [+0100], revol@xxxxxxx wrote:
> Author: mmu_man
> Date: 2010-02-05 10:28:40 +0100 (Fri, 05 Feb 2010)
> New Revision: 35412
> Changeset: http://dev.haiku-os.org/changeset/35412/haiku
> 
> Modified:
>    haiku/trunk/build/scripts/build_haiku_image
> Log:
> Fix stream redirection order so stderr actually goes to /dev/null.
> 
> 
> Modified: haiku/trunk/build/scripts/build_haiku_image
> ===================================================================
> --- haiku/trunk/build/scripts/build_haiku_image    2010-02-05 08:20:11 UTC 
> (rev 35411)
> +++ haiku/trunk/build/scripts/build_haiku_image    2010-02-05 09:28:40 UTC 
> (rev 35412)
> @@ -34,7 +34,7 @@
>  
>  # If the haiku image path is a symlink resolve it now (makebootable needs 
>  the
>  # path of the actual device path under Linux).
> -if readlink -f "$imagePath" 2>&1 > /dev/null; then
> +if readlink -f "$imagePath" > /dev/null 2>&1 ; then
>      normalizedImagePath=$(readlink -f "$imagePath")
>      if [ "$normalizedImagePath" ]; then
>          imagePath="$normalizedImagePath"

Interesting. I didn't known the order is of relevance. While you're at it, 
there are a few more occurrences in the the scripts. :-)

CU, Ingo

Other related posts: