Skip to content

Commit 2ba53eb

Browse files
committed
Update dock check syntax issue
1 parent d65527a commit 2ba53eb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/scripts/check-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fi
9999

100100
package_files=$(find . -maxdepth 1 -name 'Package*.swift')
101101
if [ -z "$package_files" ]; then
102-
fatal "Package.swift not found. Please ensure you are running this script from the root of a Swift package."
102+
fatal "Package.swift not found in \"$(pwd)\". Please ensure you are running this script from the root of a Swift package."
103103
fi
104104

105105
# yq 3.1.0-3 doesn't have filter, otherwise we could replace the grep call with "filter(.identity == "swift-docc-plugin") | keys | .[]"

.github/workflows/soundness.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ jobs:
213213
run: |
214214
analyze_arg=""
215215
doc_target_arg=""
216-
if [[ "${DOCS_TARGETS}" != "" ]] ; then
216+
if [ "${DOCS_TARGETS}" != "" ] ; then
217217
doc_target_arg="--doc-targets ${DOCS_TARGETS}"
218218
fi
219-
if [[ "${DOCC_ANALYZE}" != "true" ]]; then
219+
if [ "${DOCC_ANALYZE}" != "true" ]; then
220220
analyze_arg="--no-analyze"
221221
fi
222222
"${SCRIPT_ROOT}/.github/workflows/scripts/check-docs.sh" ${analyze_arg} ${doc_target_arg} --additional-docc-arguments ${ADDITIONAL_DOCC_ARGUMENTS}
@@ -263,10 +263,10 @@ jobs:
263263
run: |
264264
analyze_arg=""
265265
doc_target_arg=""
266-
if [[ "${DOCS_TARGETS}" != "" ]] ; then
266+
if [ "${DOCS_TARGETS}" != "" ] ; then
267267
doc_target_arg="--doc-targets ${DOCS_TARGETS}"
268268
fi
269-
if [[ "${DOCC_ANALYZE}" != "true" ]]; then
269+
if [ "${DOCC_ANALYZE}" != "true" ]; then
270270
analyze_arg="--no-analyze"
271271
fi
272272
"${SCRIPT_ROOT}/.github/workflows/scripts/check-docs.sh" ${analyze_arg} ${doc_target_arg} --additional-docc-arguments ${ADDITIONAL_DOCC_ARGUMENTS}

0 commit comments

Comments
 (0)