#!/bin/bash
if [ "${TRAVIS_BRANCH}" = "master" ]; then
    echo "Generating an pushing docs to github pages"
    cd docs/html/
    git init
    git config user.name "Travis CI"
    git add .
    git commit -m "API docs."
    git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
fi

#!/bin/sh

if [ "${TRAVIS_BRANCH}" == "master" ]; then
    echo "Generating and pushing docs to github pages"
    cd docs/html/
    git init
    git config user.name "Travis CI"
    git add .
    git commit -m "API docs."
    git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
fi

Fix assignment statement by using an equality check
Fix assignment statement by using an equality check

Signed-off-by: Njagi Mwaniki <b6a4ba60ad861b9c9afb6daea7294be4be68f44c@urbanslug.com>
