From 5759341dd180f470de663ee78fc194f0f5f3544e Mon Sep 17 00:00:00 2001
From: Amrita Deb <amritad1991@gmail.com>
Date: Tue, 1 Dec 2020 13:33:25 +0100
Subject: [PATCH] Bugfix to remove trailing blank(mr4) in sh file

---
 preparemoodle.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preparemoodle.sh b/preparemoodle.sh
index e7d944c..60645e7 100755
--- a/preparemoodle.sh
+++ b/preparemoodle.sh
@@ -164,7 +164,7 @@ echo -ne "Start iterating..."
         # parse the required fields from the csv file
         id=$(echo $line | awk -F',' '{printf "%s", $1}' | tr -d '"')
         id="${id/"Teilnehmer/in"/}"  # remove "Teilnehmer/in" to get the assignment id
-        id="${id/"Participant"/}"  # do the same for "Participant"
+        id="${id/"Participant "/}"  # do the same for "Participant"
 
          # remove quotation marks from content
         lastname=$(echo $line | awk -F',' '{printf "%s", $2}' | tr -d '"') 
-- 
GitLab