chore: suppress git config output

This commit is contained in:
UdjinM6 2024-11-13 21:17:31 +03:00
parent 8ce9bfea59
commit c5d482e0d2
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9

View File

@ -26,7 +26,7 @@ fi
# Add safe.directory option only when WORKSPACE_PATH was specified via cmd-line arguments (happens in CI) # Add safe.directory option only when WORKSPACE_PATH was specified via cmd-line arguments (happens in CI)
if [[ -n "${1}" ]]; then if [[ -n "${1}" ]]; then
# Avoid adding duplicates # Avoid adding duplicates
git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || \ git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" >> /dev/null || \
(echo "Adding safe.directory" && git config --global --add safe.directory "${WORKSPACE_PATH}") (echo "Adding safe.directory" && git config --global --add safe.directory "${WORKSPACE_PATH}")
fi fi