Skip to content

Commit 23c69bf

Browse files
committed
Fix conditional check in build_packages_info.yml to ensure GitHub functions are echoed only when defined
1 parent 2de75d5 commit 23c69bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build_packages_info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
gh_functions=$(sed -n "s/^export(\(.*\))$/\1/p" NAMESPACE | tr '\n' ',')
6969
echo "GitHub functions: $gh_functions"
7070
echo $name >> ../functions.txt
71-
if [ -z "${gh_functions}" ]; then
71+
if [ -n "${gh_functions}" ]; then
7272
echo "$gh_functions" >> ../functions.txt
7373
fi
7474
fi

0 commit comments

Comments
 (0)