Skip to content

Commit 77ca4d2

Browse files
committed
Fixed echo bash syntax by testing on a Linux server
1 parent 800917d commit 77ca4d2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/check-bioc.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,19 @@ jobs:
5353
bioc=$(curl -L https://bioconductor.org/config.yaml)
5454
if [[ "$latest_release" == "true" ]]; then
5555
echo "Finding the latest BioC release version and the corresponding R version"
56-
biocversion=$(echo $bioc | grep "release_version: " | grep -Eo "[0-9]{1}\.[0-9]{2}")
57-
rversion=$(echo $bioc | grep "r_version_associated_with_release: " | grep -Eo "[0-9]{1}\.[0-9]{1}")
58-
biocmajor=$(echo $biocversion | cut -c 1-1)
59-
biocminor=$(echo $biocversion | cut -c 3-4)
56+
biocversion=$(echo "$bioc" | grep "release_version: " | grep -Eo "[0-9]{1}\.[0-9]{2}")
57+
rversion=$(echo "$bioc" | grep "r_version_associated_with_release: " | grep -Eo "[0-9]{1}\.[0-9]{1}")
58+
biocmajor=$(echo "$biocversion" | cut -c 1-1)
59+
biocminor=$(echo "$biocversion" | cut -c 3-4)
6060
bioccont=$(echo "bioconductor/bioconductor_docker:RELEASE_${biocmajor}_${biocminor}")
6161
else
6262
echo "Finding the latest BioC devel version and the corresponding R version"
63-
biocversion=$(echo $bioc | grep "devel_version: " | grep -Eo "[0-9]{1}\.[0-9]{2}")
64-
rversion=$(echo $bioc | grep "r_version_associated_with_devel: " | grep -Eo "[0-9]{1}\.[0-9]{1}")
63+
biocversion=$(echo "$bioc" | grep "devel_version: " | grep -Eo "[0-9]{1}\.[0-9]{2}")
64+
rversion=$(echo "$bioc" | grep "r_version_associated_with_devel: " | grep -Eo "[0-9]{1}\.[0-9]{1}")
6565
bioccont="bioconductor/bioconductor_docker:devel"
6666
fi
6767
echo "Found these settings:"
68-
echo $biocversion
69-
echo $rversion
70-
echo $bioccont
68+
echo "Bioconductor version: $biocversion, R version: $rversion, Bioconductor docker name: $bioccont"
7169
echo "matrix={ \"config\": { [{\"os\" : \"ubuntu-latest\", \"r\" : \"${rversion}\", \"bioc\" : \"${biocversion}\", \"cont\" : \"${bioccont}\"} , {\"os\" : \"macOS-latest\", \"r\" : \"${rversion}\", \"bioc\" : \"${biocversion}\"} , {\"os\" : \"windows-latest\", \"r\" : \"${rversion}\", \"bioc\" : \"${biocversion}\" }] } }"
7270
7371
build-check:

0 commit comments

Comments
 (0)