Merge pull request #9 from CaninoDev/patch-1

Check if $XDG_CONFIG_HOME is set.
This commit is contained in:
Andros Fenollosa 2021-03-09 18:24:54 +01:00 committed by GitHub
commit 88959d7718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
maza
View File

@ -7,7 +7,7 @@ set -e
NAME_OSX="Darwin" NAME_OSX="Darwin"
THIS_OS=$(uname -mrs) THIS_OS=$(uname -mrs)
PROGNAME=$(basename $0) PROGNAME=$(basename $0)
CONFIG=($HOME/.maza/) [[ -z "${XDG_CONFIG_HOME}" ]] && CONFIG=$HOME/.maza/ || CONFIG=$XDG_CONFIG_HOME/maza
HOST_FILE=(/etc/hosts) HOST_FILE=(/etc/hosts)
COLOR_RED=`tput setaf 1` COLOR_RED=`tput setaf 1`
COLOR_GREEN=`tput setaf 2` COLOR_GREEN=`tput setaf 2`