Updated script to handle sed issues 68/105668/1
authorDan Timoney <dtimoney@att.com>
Thu, 9 Apr 2020 18:46:31 +0000 (14:46 -0400)
committerDan Timoney <dtimoney@att.com>
Thu, 9 Apr 2020 18:48:11 +0000 (18:48 +0000)
commite0bd7ca9e68e1789671cb2e201f409a2aef8e544
treebf74f034ba5f454cbbe36fe86710f5d71d5a4480
parent232b36b34ed82c76d6dafe2defd354cfb08a8637
Updated script to handle sed issues

The 'sed' line added to the updParentVersion script introduced 2 problems:

1) sed inline edit (-i option) saves a backup copy unless you pass the
empty string ('') as the suffix , which is the arg to the -i option.
2) BSD sed (e.g. the version installed in Mac OSX) does not support \n
as newline in replacement strings.  The more portable solution is to
simply escape a literal newline in the replacement string.

Change-Id: Ia3a3b2635b8cc9ce57ec41c2e55c1384587325c7
Issue-ID: CCSDK-2308
Signed-off-by: Dan Timoney <dtimoney@att.com>
tools/updParentVersion.sh