[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#562061: [os-prober] /etc/grub.d/30_os-prober: 40: function: not found



Resul Cetin wrote:
> Package: os-prober
> Version: 1.35
> Severity: normal
> 
> updated grub-pc to 1.98~20091221-1 and now I get the message:
> 
> /etc/grub.d/30_os-prober: 40: function: not found
> dpkg: error processing grub-pc (--configure):
>  subprocess installed post-installation script returned error exit status
>  127 Errors were encountered while processing:
>  grub-pc
> Press return to continue.

Changing "#! /bin/sh -e" to "#! /bin/bash -e" fixes the problem. See 

$ checkbashisms 30_os-prober
possible bashism in 30_os-prober line 40 ('function' is useless):
function osx_entry {



Reply to: