瀏覽代碼

fix(musare.sh): Pull images used for linting

Owen Diffey 3 天之前
父節點
當前提交
1fffde64b1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      musare.sh

+ 2 - 2
musare.sh

@@ -303,12 +303,12 @@ handleLinting()
     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *docs* ]]; then
         echo -e "${CYAN}Running docs lint...${NC}"
         # shellcheck disable=SC2086
-        ${docker} run --rm -v "${scriptLocation}":/workdir ghcr.io/igorshubovych/markdownlint-cli:latest ".wiki" "*.md" ${fix}
+        ${docker} run --rm -v "${scriptLocation}":/workdir --pull always ghcr.io/igorshubovych/markdownlint-cli:latest ".wiki" "*.md" ${fix}
         docsExitValue=$?
     fi
     if [[ ${servicesString:2:4} == "all" || "${servicesString:2}" == *shell* ]]; then
         echo -e "${CYAN}Running shell lint...${NC}"
-        ${docker} run --rm -v "${scriptLocation}":/mnt koalaman/shellcheck:stable ./*.sh ./**/*.sh
+        ${docker} run --rm -v "${scriptLocation}":/mnt --pull always koalaman/shellcheck:stable ./*.sh ./**/*.sh
         shellExitValue=$?
     fi
     set -e