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

feat: create conf file if is not exist

parent 5c222b9f
No related branches found
No related tags found
1 merge request!4Resolve "Init config file"
Pipeline #73 passed with warnings
.mygr_config
#! /bin/bash #! /bin/bash
# Constant
readonly CONFIG_FILE='.mygr_config'
load_config() {
if [[ ! -e ${CONFIG_FILE} ]]; then
create_config
fi
}
create_config(){
echo "There is no file!"
touch ${CONFIG_FILE}
echo "The file ${CONFIG_FILE} was created."
echo "Please add the line below on your .gitignore"
echo "${CONFIG_FILE}"
}
main() { main() {
echo "My GitLab Runner" echo "My GitLab Runner"
load_config
} }
main "$@" main "$@"
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