mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-27 07:54:19 +00:00
Merge pull request #14 from gort818/master
Remove superfluous if/then statments for XDG base dirs
This commit is contained in:
commit
e3d6e4db68
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user