#!/bin/ash
# jamesbond 2011 GPLv3
while [ "$1" != "" ]; do
	if [ ! -d "$1" ]; then
		Xdialog --title "Puppy Hash GUI" --no-cancel --2inputsbox "${1##*/}" 12 60 \
			MD5 "$(md5sum "$1" | cut -f 1 -d ' ')" \
			SHA1 "$(sha1sum "$1" | cut -f 1 -d ' ')"
	else
		Xdialog --title "Puppy Hash GUI" --infobox "${1##*/} is a directory, skipped." 0 0 10000
	fi
	shift
done



