Control: tags 632331 pending

On Fri, Jul 01, 2011 at 04:03:20PM +0200, Enrico Zini wrote:
>         echo "Queuing packages for profile: $p"
>         wanted_packages="$(egrep -v ^# $p.packages)"
>   [...]
> 
> Egrep exits with 1 in case no lines are found, and since it's running
> under set -e, this terminates the script.
> 
> A possible fix is to switch to sed instead of grep:
> 
>       wanted_packages="$(sed -n '/^[^#]/p')"
>       test -z "$wanted_packages" || anna-install $wanted_packages || true

Implemented this suggestion in bzr some time ago, haven't yet uploaded a new
package...

live well,
  vagrant

Attachment: signature.asc
Description: Digital signature

Reply via email to