Merge pull request #14 from azmd/check-system-config

Check if system-wide config exists before sourcing
This commit is contained in:
Rasmus Steinke 2015-08-23 14:36:56 +02:00
commit 1f633f3c54

View File

@ -6,8 +6,10 @@
# enable extended globbing
shopt -s nullglob globstar
# read global config file
source /etc/rofi-pass.conf
# check if global config exists and load it
if [[ -f /etc/rofi-pass.conf ]]; then
source /etc/rofi-pass.conf
fi
# check if local config exists and load it
if [[ -f $HOME/.config/rofi-pass/config ]]; then