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

feat: add exit func

parent a6da0a95
No related branches found
No related tags found
1 merge request!4Resolve "Bash more secure"
......@@ -36,9 +36,15 @@ Options :
config_file='.mygb_config'
export_all=false
_exit() {
cr=${1}
echo "End with code ${cr}"
exit ${cr}
}
_help() {
echo -e "${USAGE}"
exit 1
_exit 1
}
_load_config() {
......@@ -69,11 +75,11 @@ _create_config() {
}
_export() {
exit 0
_exit 0
}
_import() {
exit 0
_exit 0
}
main() {
......@@ -103,6 +109,7 @@ main() {
esac
_load_config
_exit 0
}
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