Skip to content

Commit

Permalink
respond to shell game with md5 tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kwrodarmer committed Jul 7, 2016
1 parent c746dfe commit c67dc8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/kar/kar-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ case $UNAME in
;;
(Darwin)
OS=mac
MD5TOOL=/sbin/md5
;;
(*)
echo "unsupported platform: $UNAME"
Expand Down Expand Up @@ -129,7 +130,10 @@ test_create_options ()
fi
;;
(Darwin)
if ! MD5=$(md5sum $ARCHIVE | cut -f1 -d' ')
if [ ! -x $MD5TOOL ]
then
echo "could not locate executable md5 tool"
elif ! MD5=$($MD5TOOL $ARCHIVE | cut -f1 -d' ')
then
echo "md5 failed with status $?"
cleanup
Expand Down

0 comments on commit c67dc8d

Please sign in to comment.