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

feat: succed function

parent 60f64c2f
No related branches found
No related tags found
1 merge request!4Resolve "Bash more secure"
......@@ -48,6 +48,12 @@ _fail() {
_exit 1
}
_succed() {
msg="${@}"
echo "Succed : ${msg:-no message}"
_exit 0
}
_help() {
echo -e "${USAGE}"
_fail "Bad usage"
......@@ -81,11 +87,11 @@ _create_config() {
}
_export() {
_exit 0
_succed
}
_import() {
_exit 0
_succed
}
main() {
......@@ -115,7 +121,7 @@ main() {
esac
_load_config
_exit 0
_succed
}
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