Change-Id: I8e45a1adc13f4da0e7386371678f6364670f5c38
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
JOB_NAME=$(echo "$COMMENT" | grep jjb-deploy | awk '{print $2}')
# Strip all * characters to prevent pushing all jobs to Jenkins
-if [ -z "${JOB_NAME//*/}" ]; then
+if [ -z "${JOB_NAME//\*/}" ]; then
echo "ERROR: JOB_NAME cannot be empty or '*'."
exit 1
fi
JOB_NAME=$(echo "$COMMENT" | grep jjb-deploy | awk '{print $2}')
# Strip all * characters to prevent pushing all jobs to Jenkins
-if [ -z "${JOB_NAME//*/}" ]; then
+if [ -z "${JOB_NAME//\*/}" ]; then
echo "ERROR: JOB_NAME cannot be empty or '*'."
exit 1
fi
JOB_NAME=$(echo "$COMMENT" | grep jjb-deploy | awk '{print $2}')
# Strip all * characters to prevent pushing all jobs to Jenkins
-if [ -z "${JOB_NAME//*/}" ]; then
+if [ -z "${JOB_NAME//\*/}" ]; then
echo "ERROR: JOB_NAME cannot be empty or '*'."
exit 1
fi