commit 03ff4a68a3c9083f20c5a27fa0da133d64945e55
parent f0e24e4db70732cdcbb626b5fc80bf8c91c190b0
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Fri,  4 Sep 2020 19:55:49 +0200

Config files moved to a more appropriate location

Diffstat:
D.gitignore | 3---
Mcheck-changes-website.sh | 2+-
Mwebsite-backup.sh | 4++--
3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,3 +0,0 @@ -aun_config.json -gotify_token.txt -urls.txt diff --git a/check-changes-website.sh b/check-changes-website.sh @@ -19,7 +19,7 @@ # File must implement notify funtion FILE_DIR="$(dirname "$(realpath "$0")")" . "$FILE_DIR/notify.sh" -URLS="$FILE_DIR/urls-changes.txt" +URLS="${XDG_CONFIG_HOME:-$HOME/.config}/osf/urls-check-changes.txt" [ ! -f "$URLS" ] && echo "Error: $URLS is not a file." && exit 1 diff --git a/website-backup.sh b/website-backup.sh @@ -20,8 +20,8 @@ FILE_DIR="$(dirname "$(realpath "$0")")" . "$FILE_DIR/notify.sh" -URLS="$FILE_DIR/urls.txt" -BACKUPS="$HOME/backups" +URLS="${XDG_CONFIG_HOME:-$HOME/.config}/osf/urls-backup.txt" +BACKUPS="${XDG_DATA_HOME:-$HOME/.local/share}/osf/website-backup" [ ! -f "$URLS" ] && echo "Error: $URLS is not a file." && exit 1