diff options
author | Nitroretro <nitroretro@protonmail.com> | 2019-12-19 21:41:46 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-12-23 13:16:39 -0500 |
commit | 023ca554936148e2b5a71f93ce7b849fba98182e (patch) | |
tree | fcdee670d70a4a9f8f99d42aea60585667148cc9 /scripts | |
parent | c7faa1f61f1ede1fd4080b4f25f44153573c9fae (diff) | |
download | calcurse-023ca554936148e2b5a71f93ce7b849fba98182e.tar.gz calcurse-023ca554936148e2b5a71f93ce7b849fba98182e.zip |
calcurse-upgrade: use $XDG_CONFIG_HOME
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/calcurse-upgrade.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/calcurse-upgrade.sh.in b/scripts/calcurse-upgrade.sh.in index 117ac37..1df1547 100644 --- a/scripts/calcurse-upgrade.sh.in +++ b/scripts/calcurse-upgrade.sh.in @@ -4,7 +4,7 @@ export TEXTDOMAIN='calcurse' set -e -CONFFILE=$HOME/.calcurse/conf +[ -d "$HOME/.calcurse" ] && CONFFILE="$HOME/.calcurse/conf" || CONFFILE="${XDG_CONFIG_HOME:-$HOME/.config}/calcurse/conf" if [ "$#" -gt 0 ]; then if [ "$1" = "--config" ]; then |