From 69c061a8fd781ea0f2b9995dd574c6d176628629 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Wed, 10 Apr 2024 15:30:19 +0200 Subject: [PATCH] wip: skip signing executable .sh --- scripts/ci/sign-new-macos-releases.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/ci/sign-new-macos-releases.sh b/scripts/ci/sign-new-macos-releases.sh index 244e2fe6..2fe9db32 100755 --- a/scripts/ci/sign-new-macos-releases.sh +++ b/scripts/ci/sign-new-macos-releases.sh @@ -37,6 +37,13 @@ echo "::group::Unpack .zip and sign the binaries" mkdir -p "${WORK_DIR}/tmp/${DIST_NAME}_${DIST_VERSION}_${arch}-signed/${DIST_NAME}" # find executable files, and process each one find "${WORK_DIR}/tmp/${DIST_NAME}_${DIST_VERSION}_${arch}-unsigned" -perm +111 -type f -print | while read -r file; do + # -perm +111 will return all executables, including .sh scripts + # so we need to skip them + if [[ "$file" == *.sh ]]; then + echo "-- Skipping ${file}" + continue + fi + echo "-> Processing ${file}" ls -hl "${file}"