I have a script that runs every so often that will update add, commit and push all the changes in a certain folder with a git repository. (This is because I am a lazy person).
Now this script will do it regardless if there was any actual change. Is there a way with bash to run this script only if changes were made? (Perhaps something with a command similar git status that returns an exit code if changes weren't made).