Răsfoiți Sursa

Fix Docker脚本重复问题

Nolovenodie丶 3 ani în urmă
părinte
comite
6db587335c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      script.sh

+ 1 - 1
script.sh

@@ -13,7 +13,7 @@ wget https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/content/main.
 content=$(cat index.html)
 
 # 检查index.html是否包含emby-crx
-if [[ "$content" == *"emby-crx"* ]]; then
+if grep -q "emby-crx" index.html; then
     echo "Index.html already contains emby-crx, skipping insertion."
 else
     # 定义要插入的代码