don't trip over slashes in title
This commit is contained in:
parent
64f415654a
commit
2234bbd198
@ -10,7 +10,7 @@ while read p || [[ -n $p ]]; do
|
|||||||
echo "i: $i"
|
echo "i: $i"
|
||||||
FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 2- )
|
FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 2- )
|
||||||
echo "field1: ${FIELDS[1]}"
|
echo "field1: ${FIELDS[1]}"
|
||||||
FIELDS[2]=$( echo "${FIELDS[2]}" | cut -c 2- )
|
FIELDS[2]=$( echo "${FIELDS[2]}" | cut -c 2- | sed 's/\//\\\//g')
|
||||||
echo "field2: ${FIELDS[2]}"
|
echo "field2: ${FIELDS[2]}"
|
||||||
sed 's/\[num\]/['"$i"']/' "$SCRIPT_DIR/credit.html" > "$SCRIPT_DIR/credit2.html"
|
sed 's/\[num\]/['"$i"']/' "$SCRIPT_DIR/credit.html" > "$SCRIPT_DIR/credit2.html"
|
||||||
echo "first sed, done"
|
echo "first sed, done"
|
||||||
@ -49,6 +49,7 @@ while read p || [[ -n $p ]]; do
|
|||||||
sed -i 's/\[platform img\]/<img class="src" src="twitch.png" \/>/' "$SCRIPT_DIR/credit2.html"
|
sed -i 's/\[platform img\]/<img class="src" src="twitch.png" \/>/' "$SCRIPT_DIR/credit2.html"
|
||||||
else
|
else
|
||||||
echo "who?!"
|
echo "who?!"
|
||||||
|
FIELDS[1]=$( echo "${FIELDS[1]}" )
|
||||||
sed -i 's/\[platform img\]//' "$SCRIPT_DIR/credit2.html"
|
sed -i 's/\[platform img\]//' "$SCRIPT_DIR/credit2.html"
|
||||||
fi
|
fi
|
||||||
echo "setting author to ${FIELDS[1]}!"
|
echo "setting author to ${FIELDS[1]}!"
|
||||||
|
Loading…
Reference in New Issue
Block a user