message="$(git rev-parse --abbrev-ref HEAD)" echo $message if [[ $message == *"__post__"* ]]; then echo "It's there!" fi