diff options
[hooks] Reworked generate hooks to use a string of all files to work on, rather than having to find it
1 files changed, 2 insertions, 2 deletions
| -rwxr-xr-x | generate-hooks/make-presentation.sh | 4 |
diff --git a/generate-hooks/make-presentation.sh b/generate-hooks/make-presentation.sh index e219453..dab3243 100755 --- a/generate-hooks/make-presentation.sh +++ b/generate-hooks/make-presentation.sh @@ -26,7 +26,7 @@ # &&/fol Ends (the last started) fol. if [ -z "$1" ]; then - echo First parameter must be a path + echo First parameter must be string with file paths exit fi @@ -41,7 +41,7 @@ presentation=' presentation=$(echo $presentation | sed 's/\//\\\//g') # Loop through all HTML files in given directory -for file in $(find "$1" -type f -wholename "*talks/*.html"); do +for file in $(echo $1 | grep 'talks'); do sed -i "s/<p>&&presentation<\/p>/$presentation/g; s/<p>&&slide<\/p>/<div class=\"slide\">/g;s/<p>&&/slide<\/p>/<\/div>/g; s/<p>&&centered<\/p>/<div class=\"centered\">/g;s/<p>&&/centered<\/p>/<\/div>/g; |