check custom flags

This commit is contained in:
Anime4000 2024-06-14 03:13:15 +08:00 committed by GitHub
parent 5354c08e21
commit 69672a988d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,7 +163,7 @@ if [ -d "$DIR/custom" ]; then
rsync -avhL --info=progress2 "$DIR/custom/" "$CHDIR"
fi
if [[ -d "$DIR/custom" ]] || [[ ! -d "$DIR/custom1" ]]; then
if [[ ! -d "$DIR/custom" ]] || [[ ! -d "$DIR/custom1" ]]; then
echo "Fix HTML Syntax"
find "$CHDIR/home/httpd/web" -type f -exec sed -i 's/<BODY/<body style="font-family: Arial,Tahoma,Helvetica,sans-serif;" /g' {} +
find "$CHDIR/home/httpd/web" -type f -exec sed -i 's/<! Copyright/<!-- Copyright/g' {} +