[Libosinfo] [osinfo-db] rhel: Add support to registering to the subscription-manager
Debarshi Ray
rishi.is at lostca.se
Mon Jan 16 16:57:04 UTC 2017
On Mon, Jan 16, 2017 at 04:28:52PM +0000, Debarshi Ray wrote:
> On Thu, Jan 12, 2017 at 12:26:31AM +0100, Fabiano Fid??ncio wrote:
> > +if [ -n <xsl:value-of select="config/reg-login"/> -a -n <xsl:value-of select="config/reg-password"/> ]; then
>
> We need to enclose the strings in quotes because [ -n -a -n ] will
> evaluate to TRUE. Try these:
> $ if [ -n ]; then echo foo; fi
> foo
> $ if [ -n "" ]; then echo foo; fi
> $
For reference:
http://tldp.org/LDP/abs/html/comparison-ops.html
More information about the Libosinfo
mailing list