Merge pull request #14 from gort818/master

Remove superfluous if/then statments for XDG base dirs
This commit is contained in:
the-sane 2021-01-30 13:47:54 -05:00 committed by GitHub
commit e3d6e4db68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,16 +64,8 @@ game_conf="gamedir.conf"
backup_conf="backupdir.conf"
# Use XDG base directories if defined
if [ -z "$XDG_CONFIG_HOME" ]; then
conf_dir="$HOME/.config"
else
conf_dir="$XDG_CONFIG_HOME"
fi
if [ -z "$XDG_DATA_HOME" ]; then
data_dir="$HOME/.local/share"
else
data_dir="$XDG_DATA_HOME"
fi
conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}"
data_dir="${XDG_DATA_HOME:-$HOME/.local/share}"
# .config subdirectory
conf_subdir="starcitizen-lug"