Test: restconf CN variable, strip curl newline
Fixed a few compile warnings
This commit is contained in:
parent
c27ecf0923
commit
7065d6f760
5 changed files with 10 additions and 6 deletions
|
|
@ -151,7 +151,8 @@ cat $fdataxml >> $ftest
|
|||
echo -n "</data>" >> $ftest
|
||||
# -i (ignore case) dont always work properly
|
||||
sed '/<data>/!d' $foutput > $foutput2
|
||||
mv $foutput2 $foutput
|
||||
# Strip potential newlines, curl seems to leave trailing newlines on some platforms/versions
|
||||
tr -d "\n\r" < $foutput2 > $foutput
|
||||
|
||||
ret=$(diff -i $ftest $foutput)
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue