publish.sh: fix publish.sh [1/1]

PD#SWPL-67525

Problem:
fix publish.sh

Solution:
fix publish.sh

Verify:
ad401_a113l

Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
Change-Id: If90c2f742854e19b0cd48e5383deb19f89f2d731
diff --git a/cherry_pick.sh b/cherry_pick.sh
index 4833a2e..6914162 100755
--- a/cherry_pick.sh
+++ b/cherry_pick.sh
@@ -9,7 +9,7 @@
 	[ -z "$CURRENT_MANIFEST_FILE" ] && CURRENT_MANIFEST_FILE="manifest.xml"
 	[ ! -f $CURRENT_MANIFEST_FILE ] && repo manifest -r -o $CURRENT_MANIFEST_FILE
 
-	echo "$GIT_CHERRY_PICK" | while read line
+	while IFS= read -r line
 	do
 		pattern=":29418/"
 		for keyword in $line; do
@@ -43,5 +43,5 @@
 			exit 1
 		fi
         echo -e "======== Done ========\n"
-	done
+	done <<< "$GIT_CHERRY_PICK"
 fi