Drop complex awk step.

PiperOrigin-RevId: 324023425
This commit is contained in:
Adin Scannell
2020-07-30 09:59:03 -07:00
committed by gVisor bot
parent 0d7c87ad01
commit 61b3e05f40
+1 -2
View File
@@ -43,8 +43,7 @@ install_raw() {
# Copy the raw file & generate a sha512sum.
name=$(basename "${binary}")
cp -f "${binary}" "${root}/$1"
sha512sum "${root}/$1/${name}" | \
awk "{print $$1 \" ${name}\"}" > "${root}/$1/${name}.sha512"
(cd "${root}/$1" && sha512sum "${name}" > "${name}.sha512")
done
}