#!/bin/bash git_status=$(git status --porcelain) echo "$git_status" if [[ -n $git_status ]]; then echo "have files changed and commit to remote" git add . git commit -m "add plugin files by ci" git push origin $CNB_BRANCH -o ci.skip else echo "nothing changed" fi