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

refactor: less user messages

parent 3a3c0a9b
No related branches found
No related tags found
1 merge request!5Resolve "export one project"
......@@ -112,7 +112,7 @@ _get_project_info() {
}
_schedule_project_export() {
_api POST "projects/${project_url_encoded}/export" | jq | grep "202 Accepted" \
_api POST "projects/${project_url_encoded}/export" | jq | grep --silent "202 Accepted" \
|| _fail "Can't schedule export for project [${project}]"
}
......@@ -125,13 +125,11 @@ _wait_export_finished() {
echo "Waiting end of export ..."
sleep ${WAITING_TIME}
done
echo "Export status of project [${project}] is $(_project_export_status)"
}
_export() {
_load_config
echo "My GitLab projects :"
_schedule_project_export
_wait_export_finished
_succed "Export done"
......@@ -149,7 +147,6 @@ main() {
shift
while getopts c:p:g:ah flag; do
echo "Flag is ${flag}"
# shellcheck disable=SC2034
case "${flag}" in
......
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