mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 14:32:20 +01:00
Use cut command for portability
This commit is contained in:
@@ -673,7 +673,7 @@ if [ "$DOCONFIGURE" = "yes" ]; then
|
||||
|
||||
if [ -s wolfcrypt/src/fips_test.c ]; then
|
||||
OUT=$(./wolfcrypt/test/testwolfcrypt | sed -n 's/hash = \(.*\)/\1/p')
|
||||
NEWHASH="${OUT:0:64}"
|
||||
NEWHASH=$(echo "$OUT" | cut -c1-64)
|
||||
if [ -n "$NEWHASH" ]; then
|
||||
cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak
|
||||
sed "s/^\".*\";/\"${NEWHASH}\";/" wolfcrypt/src/fips_test.c.bak > \
|
||||
|
||||
@@ -13,7 +13,7 @@ then
|
||||
fi
|
||||
|
||||
OUT=$(./wolfcrypt/test/testwolfcrypt | sed -n 's/hash = \(.*\)/\1/p')
|
||||
NEWHASH="${OUT:0:64}"
|
||||
NEWHASH=$(echo "$OUT" | cut -c1-64)
|
||||
if test -n "$NEWHASH"
|
||||
then
|
||||
cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak
|
||||
|
||||
Reference in New Issue
Block a user