diff options
author | Nitroretro <nitroretro@protonmail.com> | 2019-12-17 20:01:37 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-12-23 13:16:39 -0500 |
commit | c7faa1f61f1ede1fd4080b4f25f44153573c9fae (patch) | |
tree | 88db87dd0468ad914331ce9c33f679334d0bdb6e | |
parent | d85691ebee26891547c208e3e2e34e67b07562d7 (diff) | |
download | calcurse-c7faa1f61f1ede1fd4080b4f25f44153573c9fae.tar.gz calcurse-c7faa1f61f1ede1fd4080b4f25f44153573c9fae.zip |
calcurse-vdirsyncer: use $XDG_DATA_HOME
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rwxr-xr-x | contrib/vdir/calcurse-vdirsyncer | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vdir/calcurse-vdirsyncer b/contrib/vdir/calcurse-vdirsyncer index c5371b5..2ac849a 100755 --- a/contrib/vdir/calcurse-vdirsyncer +++ b/contrib/vdir/calcurse-vdirsyncer @@ -34,7 +34,7 @@ if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then usage fi -DATADIR="$HOME/.calcurse" +[ -d "$HOME/.calcurse" ] && DATADIR="$HOME/.calcurse" || DATADIR="${XDG_DATA_HOME:-$HOME/.local/share}/calcurse" VERBOSE="" FORCE="" |