浏览代码

Fix syntax for file existence check in action.yml

jimsterino98 4 月之前
父节点
当前提交
6c4a9398f0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/actions/use-ccache/action.yml

+ 1 - 1
.github/actions/use-ccache/action.yml

@@ -36,7 +36,7 @@ runs:
         -e 's/^HOSTCC[[:space:]]*[:?+]?=.*/HOSTCC = ccache clang/' \
         -e 's/^HOSTCXX[[:space:]]*[:?+]?=.*/HOSTCXX = ccache clang++/' \
         build/kernel/_setup_env.sh
-      elif [[-f kernel/build/kernel/build.sh ]]; then
+      elif [[ -f kernel/build/kernel/build.sh ]]; then
        sed -i -E \
         -e 's/^CC[[:space:]]*[:?+]?=.*/CC = ccache clang/' \
         -e 's/^CXX[[:space:]]*[:?+]?=.*/CXX = ccache clang++/' \