Nolovenodie丶 3 лет назад
Родитель
Сommit
6db587335c
1 измененных файлов с 1 добавлено и 1 удалено
  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)
 content=$(cat index.html)
 
 
 # 检查index.html是否包含emby-crx
 # 检查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."
     echo "Index.html already contains emby-crx, skipping insertion."
 else
 else
     # 定义要插入的代码
     # 定义要插入的代码