'Prentice Bisbal' via Puppet Users wrote: > I'm trying to use bash to create custom facts that are booleans, > Unfortunately, when I do, the values are interpreted as strings, and > not booleans. For example, here is my bash script, gdm.sh: > > #!/bin/bash > > PATH=/usr/bin:/bin:/usr/sbin:/sbin > > rpm --quiet -q gdm > retval=$? > if [ $retval -eq 0 ]; then > echo gdm_installed=true > else > echo gdm_installed=false > fi
Does that change anything? rpm --quiet -q gdm && echo 'gdm_installed=true' || echo 'gdm_installed=false' -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/xn0lwrq478qpi2o002%40news.gmane.org.
