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 bf7ce92f authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

Merge branch '4-read-config-file' into 'master'

Resolve "load config file"

Closes #4

See merge request froggit/mygr!5
parents b6a155d8 63a11046
No related branches found
No related tags found
1 merge request!5Resolve "load config file"
Pipeline #78 passed with warnings
......@@ -4,7 +4,10 @@
readonly CONFIG_FILE='.mygr_config'
load_config() {
if [[ ! -e ${CONFIG_FILE} ]]; then
if [[ -e ${CONFIG_FILE} ]]; then
# shellcheck disable=SC1090
source ${CONFIG_FILE}
else
create_config
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