mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 17:04:22 +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"
|
backup_conf="backupdir.conf"
|
||||||
|
|
||||||
# Use XDG base directories if defined
|
# Use XDG base directories if defined
|
||||||
if [ -z "$XDG_CONFIG_HOME" ]; then
|
conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
conf_dir="$HOME/.config"
|
data_dir="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
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
|
|
||||||
|
|
||||||
# .config subdirectory
|
# .config subdirectory
|
||||||
conf_subdir="starcitizen-lug"
|
conf_subdir="starcitizen-lug"
|
||||||
|
Loading…
Reference in New Issue
Block a user