Skip to content

Commit 11fdcb8

Browse files
committed
Refactor CRAN link check condition for improved clarity and handling of empty values
1 parent bc939e6 commit 11fdcb8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build_packages_info.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ jobs:
134134

135135
##### CRAN info
136136
echo "CRAN information"
137-
if [[ -z "${cran_link}" || $cran_link == " "]]; then
137+
if [[ -z "${cran_link}" ]]; then
138+
cran_version=""
139+
cran_license=""
140+
elif [[ "${cran_link}" == " " ]]; then
138141
cran_version=""
139142
cran_license=""
140143
else

0 commit comments

Comments
 (0)