From 1ad0cf0c26dc62c5d017fb0cac9fbbc070120aa6 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sun, 3 Jan 2021 23:30:22 +0100 Subject: [PATCH] Rename LIST to more descriptive PROCEDURE --- procedures-tssr/index.template.html | 2 +- pull-procedures-tssr.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/procedures-tssr/index.template.html b/procedures-tssr/index.template.html index 814e51f..f285992 100644 --- a/procedures-tssr/index.template.html +++ b/procedures-tssr/index.template.html @@ -14,7 +14,7 @@
diff --git a/pull-procedures-tssr.sh b/pull-procedures-tssr.sh index 5638cbd..2cab5eb 100755 --- a/pull-procedures-tssr.sh +++ b/pull-procedures-tssr.sh @@ -12,12 +12,12 @@ for folder in ~/tssr/procedures/*; do else echo found "$name" cp "$folder"/procedure*.pdf ./procedures-tssr/procedure_"$name".pdf - sed -i "s@===LIST===@
  • procedure_${name}.pdf

  • \n===LIST===@g" ./procedures-tssr/index.tmp.html + sed -i "s@===PROCEDURE===@
  • procedure_${name}.pdf

  • \n===PROCEDURE===@g" ./procedures-tssr/index.tmp.html fi fi done -sed -i "s/===LIST===//g" ./procedures-tssr/index.tmp.html +sed -i 's/===PROCEDURE===//g' ./procedures-tssr/index.tmp.html cp ./procedures-tssr/index.tmp.html ./procedures-tssr/index.html && rm ./procedures-tssr/index.tmp.html