From 1b843aaa5516797db6bd945a504e18707d10c5d8 Mon Sep 17 00:00:00 2001 From: Ian G Canino Date: Mon, 8 Mar 2021 20:59:20 -0500 Subject: [PATCH] Check if $XDG_CONFIG_HOME is set. Check to see if the end user has chosen to comply with the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables) --- maza | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maza b/maza index ca07d7b..d9a6570 100755 --- a/maza +++ b/maza @@ -7,7 +7,7 @@ set -e NAME_OSX="Darwin" THIS_OS=$(uname -mrs) PROGNAME=$(basename $0) -CONFIG=($HOME/.maza/) +[[ -z "${XDG_CONFIG_HOME}" ]] && CONFIG=$HOME/.maza/ || CONFIG=$XDG_CONFIG_HOME/maza HOST_FILE=(/etc/hosts) COLOR_RED=`tput setaf 1` COLOR_GREEN=`tput setaf 2`