envbool
Install latest/stable of envbool
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Details for envbool
Package name
- envbool
License
- MIT
Last updated
- Today - latest/stable
Report a Snap Store violation
Report envbool for a Snap Store violation
Snap Store Violation Report submitted successfully
Thank you for your report. Information you provided will help us investigate further.
Error submitting report
There was an error while sending your report. Please try again later.
Share this snap
Generate an embeddable card to be shared on external websites.
Tool for coercing environment variables into boolean values
A tool for coercing environment variables (and arbitrary strings) into boolean values.
Exits 0 for truthy, 1 for falsy, and 2 on error.
Usage
$ export DEBUG=true
$ envbool DEBUG && echo "debug is on"
debug is on
$ echo "Verbose: $(envbool --print VERBOSE)"
Verbose: false
$ echo "yes" | envbool && echo "truthy"
truthy
$ envbool --strict ENABLE_CACHE || echo "cache is off or misconfigured"
cache is off or misconfigured
| Revision | Channel | Version | Build | Commit | Download SBOM |
|---|
The build and commit information is derived from build infrastructure records.
Install envbool on your Linux distribution
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.