[Drbd-dev] crm-fence-peer.sh missing shell expansion
Justin Pryzby
pryzby at telsasoft.com
Fri May 8 17:09:02 CEST 2015
On Fri, May 08, 2015 at 10:03:26AM +0200, Roland Kammerer wrote:
> On Thu, May 07, 2015 at 11:55:17PM -0500, Justin Pryzby wrote:
> > There are several instances of unexpanded variables in here:
> >
> > sleep $(( net_hickup_time - SECONDS ))
> > reboot_timeout=$(( reboot_timeout + SECONDS ))
> > echo WARNING "${extra_msg}going to reboot -f in $(( reboot_timeout - SECONDS )) seconds! To cancel: kill $$"
> > if out=$( crmadmin -t $(( cibtimeout * 200 )) -S $DRBD_PEER ) \
>
> Could you be a bit more precise where you _exactly_ see the problem,
> please? "Several" does not help a bash n00b like me. Do you mean the '$'
> is missing for example for 'SECONDS'?
Yes, I was referring to that .. but, oh my goodness, you're right ..
Sorry for noise and thanks for the lesson :)
Justin
More information about the drbd-dev
mailing list