Automated backup: 2023-10-09 10:00:01

This commit is contained in:
askiiart 2023-10-09 10:00:01 -05:00
parent 65bfb9b891
commit 41605d4318
No known key found for this signature in database
GPG key ID: 498440A5CD6FAA2C
4 changed files with 8 additions and 0 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
rm -rf $GIT_DIR/fish

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd $GIT_DIR
git add .

5
create-cron-job.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
(crontab -l 2>/dev/null; echo "0 * * * * $GIT_DIR/commit.sh") | crontab -

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
rm -rf $HOME/.config/fish/