guix: Avoid adding duplicate safe.directory option

This commit is contained in:
UdjinM6 2024-11-12 15:13:31 +03:00
parent 87c978605e
commit 187a4f1a0c
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9

View File

@ -25,8 +25,10 @@ if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}"
fi
# Avoid adding duplicate safe.directory option
git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || git config --global --add safe.directory "${WORKSPACE_PATH}"
cd "${WORKSPACE_PATH}"
git config --global --add safe.directory "${WORKSPACE_PATH}"
git status >> /dev/null
export HOSTS="${HOSTS:-x86_64-linux-gnu aarch64-linux-gnu riscv64-linux-gnu