Skip to content
Snippets Groups Projects
Commit 37e494c8 authored by Théo - Le Filament's avatar Théo - Le Filament
Browse files

fix: typo in module installation logging

parent 37a18f58
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
# set -e
ODOO_ROOT_DIR=${ODOO_ROOT_DIR:-'/opt/odoo'} ODOO_ROOT_DIR=${ODOO_ROOT_DIR:-'/opt/odoo'}
SAVE_COMMITS_DIR=${SAVE_COMMITS_DIR:-'/opt/odoo_commits'} SAVE_COMMITS_DIR=${SAVE_COMMITS_DIR:-'/opt/odoo_commits'}
SAVE_COMMITS_FILENAME=${SAVE_COMMITS_FILENAME:-'custom_addons'} SAVE_COMMITS_FILENAME=${SAVE_COMMITS_FILENAME:-'custom_addons'}
...@@ -91,30 +89,29 @@ dst="$1" ...@@ -91,30 +89,29 @@ dst="$1"
shift shift
modules="$@" modules="$@"
# Clonning repo. # Cloning repo.
# set +e log_action="repo '$repo': cloning [no tree + branch]..."
log_action="repo '$repo': clonning [no tree + branch]..."
print_info "$log_action" print_info "$log_action"
git clone --branch "${ref}" --filter=tree:0 "${repo}" "${TMP_REPO_PATH}" git clone --branch "${ref}" --filter=tree:0 "${repo}" "${TMP_REPO_PATH}"
if [ "$?" -eq 0 ]; then if [ "$?" -eq 0 ]; then
print_success "$log_action" print_success "$log_action"
else else
print_failed "$log_action" print_failed "$log_action"
log_action="repo '$repo': clonning [no tree]..." log_action="repo '$repo': cloning [no tree]..."
print_info "$log_action" print_info "$log_action"
git clone --filter=tree:0 "${repo}" "${TMP_REPO_PATH}" git clone --filter=tree:0 "${repo}" "${TMP_REPO_PATH}"
if [ "$?" -eq 0 ]; then if [ "$?" -eq 0 ]; then
print_success "$log_action" print_success "$log_action"
else else
print_failed "$log_action" print_failed "$log_action"
log_action="repo '$repo': clonning [branch]..." log_action="repo '$repo': cloning [branch]..."
print_info "$log_action" print_info "$log_action"
git clone --single-branch --branch "${ref}" --depth 1 "${repo}" "${TMP_REPO_PATH}" git clone --single-branch --branch "${ref}" --depth 1 "${repo}" "${TMP_REPO_PATH}"
if [ "$?" -eq 0 ]; then if [ "$?" -eq 0 ]; then
print_success "$log_action" print_success "$log_action"
else else
print_failed "$log_action" print_failed "$log_action"
log_action="repo '$repo': clonning [classic]..." log_action="repo '$repo': cloning [classic]..."
print_info "$log_action" print_info "$log_action"
git clone "${repo}" "${TMP_REPO_PATH}" git clone "${repo}" "${TMP_REPO_PATH}"
if [ "$?" -eq 0 ]; then if [ "$?" -eq 0 ]; then
...@@ -126,7 +123,6 @@ else ...@@ -126,7 +123,6 @@ else
fi fi
fi fi
fi fi
# set -e
## Get module code and save informations about it in a CSV file. ## Get module code and save informations about it in a CSV file.
......
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