erste Version des Blogs, auf die Schnelle
This commit is contained in:
parent
0e09b0c03e
commit
96408a4ca9
90 changed files with 1747 additions and 11 deletions
18
sb/scripts/replace-absolute-path-by-relative.sh
Executable file
18
sb/scripts/replace-absolute-path-by-relative.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# script im root dir ausführen
|
||||
working_directory=$(basename $(pwd))
|
||||
if [ "$working_directory" != "FOERBICO" ]; then
|
||||
echo "not in root dir 'FOERBICO'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
find sb/content -type f -name '*.md' | while read FILE ;
|
||||
do
|
||||
sed -i -s -E 's|http.*://oer.community/wp-content/upload.+/.+/.+/||g' $FILE
|
||||
sed -i -s -E 's|http.*://pad..*/upload.*/.+/.+/||g' $FILE
|
||||
sed -i -s 's|../assets/images/blog/||g' $FILE
|
||||
done
|
||||
|
||||
# Aufruf mit `$ sb/scripts/replace-absolute-path-by-relative.sh``
|
||||
Loading…
Add table
Add a link
Reference in a new issue