Quellcode durchsuchen

Fix Docker自动插入

Nolovenodie丶 vor 2 Jahren
Ursprung
Commit
be0a780fe4
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      script.sh

+ 1 - 1
script.sh

@@ -15,7 +15,7 @@ content=$(cat index.html)
 code='<link rel="stylesheet" id="theme-css"  href="emby-crx/style.css" type="text/css" media="all" />\n<script src="emby-crx/common-utils.js"></script>\n<script src="emby-crx/jquery-3.6.0.min.js"></script>\n<script src="emby-crx/md5.min.js"></script>\n<script src="emby-crx/main.js"></script>'
 
 # 在</head>之前插入代码
-new_content=$(echo -e "${content/<\/head>/$code\n<\/head>}")
+new_content=$(echo -e "${content/<\/head>/$code<\/head>}")
 
 # 将新内容写入index.html文件
 echo -e "$new_content" > index.html