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

Merge branch '5-init-config-file' into 'master'

Resolve "Init config file"

Closes #5

See merge request froggit/mygr!4
parents 20dbe1d7 adae4bdd
No related branches found
No related tags found
1 merge request!4Resolve "Init config file"
Pipeline #75 passed with warnings
.mygr_config
#! /bin/bash
echo "My GitLab Runner"
# 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() {
echo "My GitLab Runner"
load_config
}
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