File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -673,7 +673,7 @@ if [ "$DOCONFIGURE" = "yes" ]; then
673673
674674 if [ -s wolfcrypt/src/fips_test.c ]; then
675675 OUT=$( ./wolfcrypt/test/testwolfcrypt | sed -n ' s/hash = \(.*\)/\1/p' )
676- NEWHASH=" ${ OUT: 0 : 64} "
676+ NEWHASH=$( echo " $ OUT" | cut -c1-64 )
677677 if [ -n " $NEWHASH " ]; then
678678 cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak
679679 sed " s/^\" .*\" ;/\" ${NEWHASH} \" ;/" wolfcrypt/src/fips_test.c.bak > \
Original file line number Diff line number Diff line change 1313fi
1414
1515OUT=$( ./wolfcrypt/test/testwolfcrypt | sed -n ' s/hash = \(.*\)/\1/p' )
16- NEWHASH=" ${ OUT: 0 : 64} "
16+ NEWHASH=$( echo " $ OUT" | cut -c1-64 )
1717if test -n " $NEWHASH "
1818then
1919 cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak
You can’t perform that action at this time.
0 commit comments