summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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