diff --git a/crediting/credit.sh b/crediting/credit.sh index 144468e..28cd0e3 100755 --- a/crediting/credit.sh +++ b/crediting/credit.sh @@ -10,7 +10,7 @@ while read p || [[ -n $p ]]; do echo "i: $i" FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 2- ) 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]}" sed 's/\[num\]/['"$i"']/' "$SCRIPT_DIR/credit.html" > "$SCRIPT_DIR/credit2.html" echo "first sed, done" @@ -49,6 +49,7 @@ while read p || [[ -n $p ]]; do sed -i 's/\[platform img\]//' "$SCRIPT_DIR/credit2.html" else echo "who?!" + FIELDS[1]=$( echo "${FIELDS[1]}" ) sed -i 's/\[platform img\]//' "$SCRIPT_DIR/credit2.html" fi echo "setting author to ${FIELDS[1]}!"