From 123f04270b0a0b4d305c45c3b72ebb87591d22ad Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Thu, 7 Apr 2016 03:55:43 +0000 Subject: [PATCH] md5 format --- TODO | 6 ++++++ urchin | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 4ade2a3..cee45ba 100644 --- a/TODO +++ b/TODO @@ -161,3 +161,9 @@ BSD mktemp | ./urchin: cannot create /log: permission denied +NetBSD + + md5: unknown option -- q + usage: cksum [-n] [-a algorithm [-ptx] [-s string]] [-o 1|2] + [file ... | -c [-w] [sumfile]] + diff --git a/urchin b/urchin index 4100ddf..ffedb54 100755 --- a/urchin +++ b/urchin @@ -154,7 +154,7 @@ stdout_file() { mkdir -p "${x}" case "${urchin_md5}" in md5sum) y=$(echo "${the_shell}" | md5sum | cut -d\ -f1) ;; - md5) y=$(echo "${the_shell}" | md5 -q) ;; + md5) y=$(echo "${the_shell}" | md5 | sed 's/.* //') ;; *) echo md5 command is not configured >&2; urchin_exit 1;; esac echo "${x}/${y}"