[Libguestfs] [PATCH 2/7] tests: move guestfs-md5.sh to test-data

Richard W.M. Jones rjones at redhat.com
Sat Mar 19 17:14:59 UTC 2016


On Fri, Mar 18, 2016 at 05:18:08PM +0100, Pino Toscano wrote:
> +do_md5 ()
> +{
> +  case "$(uname)" in
> +    Linux)
> +      md5sum "$1" | awk '{print $1}'
> +      ;;
> +    *)
> +      echo "$0: unknown method to calculate MD5 of file on $(uname)"

s/MD5/hash/ (although that error was present in the original file too,
so maybe it should be in a new commit).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html




More information about the Libguestfs mailing list