Dnia 2013-09-10, o godz. 11:57:31
"Steven J. Long" napisał(a):
> Michał Górny wrote:
> > +systemd_install_serviced() {
> > + debug-print-function ${FUNCNAME} "${@}"
> > +
> > + local src=${1}
> > + local service=${2}
> > +
> > + if [[ ! ${service} ]]; then
> > + [[ ${src} == *.c
On Tue, Sep 10, 2013 at 12:36 PM, Michał Górny wrote:
>> > Nope. 'insinto' sets INSDESTTREE. Due to lack of proper scoping
>> > support in bash, we need to localize this variable to restore previous
>> > 'insinto' scope after leaving the function.
>>
>> Actually the only reason you are able to do
Michał Górny wrote:
> +systemd_install_serviced() {
> + debug-print-function ${FUNCNAME} "${@}"
> +
> + local src=${1}
> + local service=${2}
> +
> + if [[ ! ${service} ]]; then
> + [[ ${src} == *.conf ]] || die "Source file needs .conf suffix"
I would hoist this check