Bash - Boolean Variable
Table of Contents
About
The Boolean data type in Bash.
Bash has a true built-in.
Articles Related
Management
Condition
condition=true
if [ "$condition" = true ] ; then
echo 'Go'
fi
# or double bracket format
if [[ "$bool" = true ]]; then
echo 'Go'
fi