From 023ca554936148e2b5a71f93ce7b849fba98182e Mon Sep 17 00:00:00 2001 From: Nitroretro Date: Thu, 19 Dec 2019 21:41:46 +0200 Subject: calcurse-upgrade: use $XDG_CONFIG_HOME Signed-off-by: Lukas Fleischer --- scripts/calcurse-upgrade.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2