File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999
100100package_files=$( find . -maxdepth 1 -name ' Package*.swift' )
101101if [ -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."
103103fi
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 | .[]"
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments