md5 format

This commit is contained in:
Thomas Levine 2016-04-07 03:55:43 +00:00
parent 82c81822d3
commit 123f04270b
2 changed files with 7 additions and 1 deletions

6
TODO
View File

@ -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]]

2
urchin
View File

@ -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}"