file_hash() {
if type md5sum &>/dev/null ; then
md5sum "$1"
- elif type lockfile &>/dev/null ; then
+ elif type md5 &>/dev/null ; then
md5 "$1"
else
failure "Neither md5sum nor md5 are in the path!"
# return 2 if path has group or other writability
if is_write "$gAccess" || is_write "$oAccess" ; then
log error "improper group or other writability on path '$path':"
- log error " group: $gAccess, other: $oAcess"
+ log error " group: $gAccess, other: $oAccess"
return 2
fi