feat(odoo): standardize log function calls in download-git-archive script
- Replace `log_entrypoint` with `log-entrypoint` for consistency - Ensure uniform error and info logging throughout the script - Maintain existing functionality and download logic
This commit is contained in:
1 file changed
+4
-4
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
|
||||
if [[ -z "$GITHUB_PAT" ]] || [[ -z "$GITHUB_USERNAME" ]]; then
|
||||
log_entrypoint 'Error: GitHub personal access token or username is not set.'
|
||||
log-entrypoint 'Error: GitHub personal access token or username is not set.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -16,7 +16,7 @@ if [[ -f "$ref_file" ]]; then
|
||||
fi
|
||||
|
||||
if [[ -z "$last_ref" ]] || [[ "$last_ref" != "$ODOO_ENTERPRISE_REF" ]]; then
|
||||
log_entrypoint "Downloading Odoo Enterprise $ODOO_ENTERPRISE_REF to $local_path."
|
||||
log-entrypoint "Downloading Odoo Enterprise $ODOO_ENTERPRISE_REF to $local_path."
|
||||
find "$local_path" -mindepth 1 -maxdepth 1 ! -name '.last_ref' -exec rm -rf {} +
|
||||
curl -L -o "$local_path/archive.tar.gz" \
|
||||
"https://${GITHUB_USERNAME}:${GITHUB_PAT}@github.com/odoo/enterprise/archive/$ODOO_ENTERPRISE_REF.tar.gz"
|
||||
@@ -24,5 +24,5 @@ if [[ -z "$last_ref" ]] || [[ "$last_ref" != "$ODOO_ENTERPRISE_REF" ]]; then
|
||||
rm "$local_path/archive.tar.gz"
|
||||
echo "$ODOO_ENTERPRISE_REF" > "$ref_file"
|
||||
else
|
||||
log_entrypoint "Odoo Enterprise $ODOO_ENTERPRISE_REF already downloaded. Skipping download."
|
||||
fi
|
||||
log-entrypoint "Odoo Enterprise $ODOO_ENTERPRISE_REF already downloaded. Skipping download."
|
||||
fi
|
||||
Reference in new issue
Block a user