aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNitroretro <nitroretro@protonmail.com>2019-12-19 21:41:46 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2019-12-23 13:16:39 -0500
commit023ca554936148e2b5a71f93ce7b849fba98182e (patch)
treefcdee670d70a4a9f8f99d42aea60585667148cc9
parentc7faa1f61f1ede1fd4080b4f25f44153573c9fae (diff)
downloadcalcurse-023ca554936148e2b5a71f93ce7b849fba98182e.tar.gz
calcurse-023ca554936148e2b5a71f93ce7b849fba98182e.zip
calcurse-upgrade: use $XDG_CONFIG_HOME
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--scripts/calcurse-upgrade.sh.in2
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