Thread (6 messages) 6 messages, 1 author, 2013-09-25
STALE4658d

[PATCH 4/6] tests/env-ddf-template: add helper function for checksums

From: <hidden>
Date: 2013-09-25 20:42:00
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Martin Wilck <redacted>
---
 tests/env-ddf-template |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/env-ddf-template b/tests/env-ddf-template
index cc9cc2b..c0a4b71 100644
--- a/tests/env-ddf-template
+++ b/tests/env-ddf-template
@@ -1,3 +1,7 @@
+sha1_sum() {
+    sha1sum "$1" | cut -c 1-40
+}
+
 get_rootdev() {
     local dev=$(stat -c %D /)
     local maj=$(expr $dev : '\(..\)')
-- 
1.7.3.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help