5 script_path="$( cd -P "$( dirname "$(readlink -f "${0}")" )" && pwd )"
6 theme_dir="${script_path}/src/themes/"
9 for _theme in "${theme_dir}/"*; do
11 current_commit_id="$(git rev-parse --short HEAD)"
12 default_branch="$(git remote show origin | grep 'HEAD branch' | awk '{print $NF}')"
13 git checkout "${default_branch}"
15 new_commit_id="$(git rev-parse --short HEAD)"
19 if [[ ! "${current_commit_id}" = "${new_commit_id}" ]]; then
21 git commit -S -m "Updated hugo theme (${new_commit_id})"