We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e26bc0 commit afa5649Copy full SHA for afa5649
2 files changed
fips-check.sh
@@ -673,7 +673,7 @@ if [ "$DOCONFIGURE" = "yes" ]; then
673
674
if [ -s wolfcrypt/src/fips_test.c ]; then
675
OUT=$(./wolfcrypt/test/testwolfcrypt | sed -n 's/hash = \(.*\)/\1/p')
676
- NEWHASH="${OUT:0:64}"
+ NEWHASH=$(echo "$OUT" | cut -c1-64)
677
if [ -n "$NEWHASH" ]; then
678
cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak
679
sed "s/^\".*\";/\"${NEWHASH}\";/" wolfcrypt/src/fips_test.c.bak > \
fips-hash.sh
@@ -13,7 +13,7 @@ then
13
fi
14
15
16
-NEWHASH="${OUT:0:64}"
+NEWHASH=$(echo "$OUT" | cut -c1-64)
17
if test -n "$NEWHASH"
18
then
19
0 commit comments