summaryrefslogtreecommitdiff
path: root/fetch-css.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fetch-css.sh')
-rwxr-xr-xfetch-css.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/fetch-css.sh b/fetch-css.sh
index 06718c2..28a6ac9 100755
--- a/fetch-css.sh
+++ b/fetch-css.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Startdate: 2020-05-29 20:18
-INDIR=/mnt/public/www/issues
+INDIR=/mnt/public/www/gitlab-issues
INGLOB=*.html
SEDSCRIPT=/mnt/public/work/devuan/fix-css-in-html.sed
@@ -14,6 +14,7 @@ INSERVER=https://git.devuan.org
cd "${INDIR}"
+#orig_css="$( sed -n -r -e 's/^.*rel="stylesheet".*(href="[^"]+\.css").*/\1/p' ${INGLOB} | awk -F'"' '!x[$2]++{print $2}' )"
orig_css="$( sed -n -r -e 's/^.*<link.*(href="[^"]+\.css").*/\1/p' ${INGLOB} | awk -F'"' '!x[$2]++{print $2}' )"
cat /dev/null > "${SEDSCRIPT}"
bgstack15