소스 검색

Fix condition to check for patches array length

jimsterino98 4 달 전
부모
커밋
6ec7fa8fb9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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[@]}" ./