From 74489dc82d30728a6b708cfc23c6efa25d276296 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 12 Nov 2024 15:28:55 +0300 Subject: [PATCH] chore: Log when preparing macOS SDK or adding `safe.directory` option --- contrib/containers/guix/scripts/guix-start | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/containers/guix/scripts/guix-start b/contrib/containers/guix/scripts/guix-start index ac2b4cbe57..f36674427d 100755 --- a/contrib/containers/guix/scripts/guix-start +++ b/contrib/containers/guix/scripts/guix-start @@ -17,6 +17,7 @@ export SDK_PATH="${SDK_PATH:-${WORKSPACE_PATH}/depends/SDKs}" # Check if macOS SDK is present, if not, download it if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then + echo "Preparing macOS SDK..." mkdir -p "${SDK_PATH}" curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}" fi @@ -24,7 +25,8 @@ fi # Add safe.directory option only when WORKSPACE_PATH was specified via cmd-line arguments (happens in CI) if [[ -n "${1}" ]]; then # Avoid adding duplicates - git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || git config --global --add safe.directory "${WORKSPACE_PATH}" + git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || \ + (echo "Adding safe.directory" && git config --global --add safe.directory "${WORKSPACE_PATH}") fi cd "${WORKSPACE_PATH}"