I am using a optional variable BUILD_X flag to decide whether to build X based on user input.
BUILD_X=true
while getopts "B:" option; do
  case "$option" in
    B) BUILD_X=$OPTARG;;
  esac
done
if (( $BUILD_X == true )); then
    body
fi
I am observing that even if I give BUILD_X false from the terminal as an input to script, it still executes the body. Where am I going wrong ?
