Last active
December 3, 2020 16:15
-
-
Save cjdenio/e7f2caadb0d5e877b475139ec7ca5465 to your computer and use it in GitHub Desktop.
Bash script for peroidically backing up my dotfiles to https://github.com/cjdenio/config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /home/cjdenio/Documents/github/config | |
if ! git diff --exit-code --quiet; | |
then | |
git add . | |
git commit -m "Update config files" | |
git push | |
else | |
echo "No files to update" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment