On Wednesday 16 December 2020 05:14:14 Stefan G. Weichinger wrote:

> Am 14.12.20 um 22:13 schrieb Nathan Stratton Treadway:
> >>> So, what's on line 135 of the bak-indices-configs script?
> >>
> >> That is a very long if else fi thing, wordwrap off:
> >> -------------------------------------------
> >> if [ $PARTS_WRITTEN -gt 0 ]; then
> >>    if [ $DUMMY -eq 1 ] ; then
> >
> > Seems like the only occurrence of "-gt" is in the $PARTS_WRITTEN
> > line.
> >
> > The output you quoted in your earlier email mentions
> >     Parts written =  >> dd.report.Dailys-17
> > .  Does that mean that the PARTS_WRITTEN variable actaully contained
> > the value ">> dd.report.Dailys-17"?  That would definitely not parse
> > out well in the if condition...
> >
> > If add quotes around the variable (i.e. you change that line to
> >    if [ "$PARTS_WRITTEN" -gt 0 ]; then
> > ), I think that would prevent the script from erroring out at that
> > spot (and is generally a good idea).
>
You reminded me of that, so its now done. We'll see if that fixes it.
Thanks Stefan.

> A general sidenote here:
>
> for years already I think of creating some "amanda-helpers" repository
> to collect, share and develop such scripts and tools.
>
> I even started that, I nearly forgot:
>
> https://github.com/stefangweichinger/amanda-helpers
>
> ;-)
>
> not much content so far.

As I see.  What does it take to get commit perms?
>
> In other projects the project team of the code helps to host such
> stuff ...
>
> Just an idea or suggestion. It would make it easier to contribute and
> improve.

I agree, the more eyeballs, the quicker bugs get fixed.

Take care now and stay well Stefan.

Copyright 2019 by Maurice E. Heskett
Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

Reply via email to