Auto stash before merge of "master" and "origin/master"
This commit is contained in:
parent
1f9a0ea7c8
commit
032ed7b627
6
flash
6
flash
|
|
@ -330,8 +330,14 @@ ${LGREY}Select a number to continue, or${NC} ${LRED}Q${NC} ${LGREY}to quit...${N
|
||||||
|
|
||||||
# Update item score for each flashcard item
|
# Update item score for each flashcard item
|
||||||
## Remove forward slashes in the Questions and answers
|
## Remove forward slashes in the Questions and answers
|
||||||
|
<<<<<<< Updated upstream
|
||||||
QUESTION_REGEX=$(sed "s/\(\/\|\[\|\]\|\*\)/\\\\\1/g" <<<"${q[1]}")
|
QUESTION_REGEX=$(sed "s/\(\/\|\[\|\]\|\*\)/\\\\\1/g" <<<"${q[1]}")
|
||||||
ANSWER_REGEX=$(sed "s/\(\/\|\[\|\]\|\*\)/\\\\\1/g" <<<"${q[2]}")
|
ANSWER_REGEX=$(sed "s/\(\/\|\[\|\]\|\*\)/\\\\\1/g" <<<"${q[2]}")
|
||||||
|
=======
|
||||||
|
QUESTION_REGEX="$(sed "s/\(\/\|\[\|\]\|\*\)/\\\\\1/g" <<<"${q[1]}")"
|
||||||
|
ANSWER_REGEX="$(sed "s/\(\/\|\[\|\]\|\*\)/\\\\\1/g" <<<"${q[2]}")"
|
||||||
|
# sed -i "s/${q[0]}:$QUESTION_REGEX:$ANSWER_REGEX:${q[3]}/${q[0]}:$QUESTION_REGEX:$ANSWER_REGEX:$NEW_ITEM_SCORE/g" "$DECK"
|
||||||
|
>>>>>>> Stashed changes
|
||||||
sed -i .bak "s/${q[0]}:$QUESTION_REGEX:$ANSWER_REGEX:${q[3]}/${q[0]}:$QUESTION_REGEX:$ANSWER_REGEX:$NEW_ITEM_SCORE/g" "$DECK"
|
sed -i .bak "s/${q[0]}:$QUESTION_REGEX:$ANSWER_REGEX:${q[3]}/${q[0]}:$QUESTION_REGEX:$ANSWER_REGEX:$NEW_ITEM_SCORE/g" "$DECK"
|
||||||
rm ./*.bak
|
rm ./*.bak
|
||||||
# If no highscore currently set, set it.
|
# If no highscore currently set, set it.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue