Merge pull request #14 from azmd/check-system-config
Check if system-wide config exists before sourcing
This commit is contained in:
commit
1f633f3c54
@ -6,8 +6,10 @@
|
|||||||
# enable extended globbing
|
# enable extended globbing
|
||||||
shopt -s nullglob globstar
|
shopt -s nullglob globstar
|
||||||
|
|
||||||
# read global config file
|
# check if global config exists and load it
|
||||||
source /etc/rofi-pass.conf
|
if [[ -f /etc/rofi-pass.conf ]]; then
|
||||||
|
source /etc/rofi-pass.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# check if local config exists and load it
|
# check if local config exists and load it
|
||||||
if [[ -f $HOME/.config/rofi-pass/config ]]; then
|
if [[ -f $HOME/.config/rofi-pass/config ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user