[151265] contrib/mp-buildbot/mpbb-install-dependencies

Mojca Miklavec mojca at macports.org
Wed Aug 17 01:49:43 PDT 2016


On 14 August 2016 at 14:02, Ryan Schmidt wrote:
>
>> -    echo "Installing $dependencies_count dependencies:"
>> -    echo "Installing $dependencies_count dependencies:" >> "$log_status_dependencies"
>> -    echo "$dependencies" | sed -E 's/^/ - /'
>> -    echo "$dependencies" | sed -E 's/^/ - /' >> "$log_status_dependencies"
>>
>> +    text="Installing $dependencies_count dependencies of $option_port:"
>> +    echo "$text"
>> +    echo "$text" >> "$log_status_dependencies"
>> +
>
> Rather than having to echo the same thing twice, you can use tee:
>
> echo "Installing $dependencies_count dependencies of $option_port:" | tee -a "$log_status_dependencies"
>
> This will display the text on stdout and append it to the logfile.

Thank you for teaching me something new. Fixed in
    https://trac.macports.org/changeset/151517/

Mojca


More information about the macports-dev mailing list