Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 63a11046 authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

feat: load conf file

parent b6a155d8
No related branches found
No related tags found
1 merge request!5Resolve "load config file"
Pipeline #76 passed with warnings
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
readonly CONFIG_FILE='.mygr_config' readonly CONFIG_FILE='.mygr_config'
load_config() { load_config() {
if [[ ! -e ${CONFIG_FILE} ]]; then if [[ -e ${CONFIG_FILE} ]]; then
# shellcheck disable=SC1090
source ${CONFIG_FILE}
else
create_config create_config
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment