md5
This commit is contained in:
parent
9b4f14c937
commit
ca71678522
16
urchin
16
urchin
@ -98,16 +98,10 @@ urchin_exit() {
|
|||||||
exit "$@"
|
exit "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
urchin_md5_quiet() {
|
if which md5 1> /dev/null 2> /dev/null; then
|
||||||
md5 -q
|
alias urchin_md5='md5 -q'
|
||||||
}
|
elif which md5sum 1> /dev/null 2> /dev/null; then
|
||||||
urchin_md5sum_quiet() {
|
alias urchin_md5='md5sum | cut -d\ -f1'
|
||||||
md5sum | cut -d\ -f1
|
|
||||||
}
|
|
||||||
if which md5 > /dev/null; then
|
|
||||||
md5=urchin_md5_quiet
|
|
||||||
elif which md5sum > /dev/null; then
|
|
||||||
md5=urchin_mdsum_quiet
|
|
||||||
else
|
else
|
||||||
echo Could not find md5sum command >&2
|
echo Could not find md5sum command >&2
|
||||||
urchin_exit 1
|
urchin_exit 1
|
||||||
@ -120,7 +114,7 @@ stdout_file() {
|
|||||||
|
|
||||||
x="${urchin_tmp}/stdout$(fullpath "$the_test")"
|
x="${urchin_tmp}/stdout$(fullpath "$the_test")"
|
||||||
mkdir -p "${x}"
|
mkdir -p "${x}"
|
||||||
echo "${x}/$(echo "${the_shell}" | $md5)"
|
echo "${x}/$(echo "${the_shell}" | urchin_md5)"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Expand relative paths
|
# Expand relative paths
|
||||||
|
Loading…
Reference in New Issue
Block a user