ci: fix syntax issues in zfs-qemu.yml

Otherwise it might become `if [ == "" ]` which is ill-formed.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #17695
This commit is contained in:
Shengqi Chen 2025-09-04 11:18:01 +08:00 committed by Tony Hutter
parent 0c9302b042
commit f4a85d6f2c

View File

@ -44,7 +44,7 @@ jobs:
os_selection="$FULL_OS" os_selection="$FULL_OS"
fi fi
if [ ${{ github.event.inputs.fedora_kernel_ver }} != "" ] ; then if ${{ github.event.inputs.fedora_kernel_ver != '' }}; then
# They specified a custom kernel version for Fedora. Use only # They specified a custom kernel version for Fedora. Use only
# Fedora runners. # Fedora runners.
os_json=$(echo ${os_selection} | jq -c '[.[] | select(startswith("fedora"))]') os_json=$(echo ${os_selection} | jq -c '[.[] | select(startswith("fedora"))]')
@ -53,9 +53,8 @@ jobs:
os_json=$(echo ${os_selection} | jq -c) os_json=$(echo ${os_selection} | jq -c)
fi fi
echo $os_json echo "os=$os_json" | tee -a $GITHUB_OUTPUT
echo "os=$os_json" >> $GITHUB_OUTPUT echo "ci_type=$ci_type" | tee -a $GITHUB_OUTPUT
echo "ci_type=$ci_type" >> $GITHUB_OUTPUT
qemu-vm: qemu-vm:
name: qemu-x86 name: qemu-x86