mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-29 05:59:02 +00:00
Remove superfluous if/then statments for XDG base dits
This commit is contained in:
parent
1670c3ccf7
commit
8e922ae0ef
@ -63,17 +63,8 @@ wine_conf="winedir.conf"
|
||||
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…
x
Reference in New Issue
Block a user