Browse Source

Fix condition to check for patches array length

jimsterino98 4 tháng trước cách đây
mục cha
commit
6ec7fa8fb9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      .github/actions/susfs-patches/action.yml

+ 1 - 1
.github/actions/susfs-patches/action.yml

@@ -62,7 +62,7 @@ runs:
       shopt -s nullglob
       patches=("KERNEL_PATCHES/samsung/${{ inputs.branch }}"/*.patch)
       
-      if [${patches[@]} -gt 0 ]; then
+      if [ ${#patches[@]} -gt 0 ]; then
        echo "Patches found, applying..."
        cp "${patches[@]}" ./