瀏覽代碼

Accept improvement from @coderabbitai

Arend-Jan van Hilten 1 月之前
父節點
當前提交
19a6e2a08a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      action.yml

+ 3 - 1
action.yml

@@ -147,7 +147,9 @@ runs:
         # copy os userpatches and custom
         mkdir -pv build/userpatches
         rsync -av os/userpatches/. build/userpatches/
-        [[ -d custom/userpatches ]] && rsync -av custom/userpatches/. build/userpatches/ || true # if that folder doesnt exist, don't fail the build
+        if [[ -d custom/userpatches ]]; then
+          rsync -av custom/userpatches/. build/userpatches/
+        fi
 
     - shell: bash
       run: |