diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2010-10-19 14:44:02 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2010-10-19 14:44:02 -0500 |
commit | 7a6f3b6f965198cea63d141b9fbaf7ef177b6a1e (patch) | |
tree | 39a42e6fbb24587f841a406a1b9d22ed9f53858c /librerelease | |
parent | 1d62989f49eb7e8cc387758e9ff623fe947cc418 (diff) |
Use XDG_CONFIG_HOME and source that file if it exists
Diffstat (limited to 'librerelease')
-rwxr-xr-x | librerelease | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/librerelease b/librerelease index c7b21e6..f684e4d 100755 --- a/librerelease +++ b/librerelease @@ -20,9 +20,9 @@ # You should have received a copy of the GNU General Public License # along with Parabola. If not, see <http://www.gnu.org/licenses/>. - -if [-e $XDG_CONFIG_HOME/.libretools.conf]; then - source $XDG_CONFIG_HOME/.libretools.conf +custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf +if [-e $custom_config]; then + source $custom_config else source /etc/libretools.conf fi |