From 2c71011b157e707b3e0b85c348d32a1c08543fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Tue, 14 Jul 2015 14:47:45 +0000 Subject: oups --- prepare.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/prepare.sh b/prepare.sh index dead05a..3ab0aa7 100755 --- a/prepare.sh +++ b/prepare.sh @@ -47,14 +47,13 @@ md5_check(){ exit 1 fi if command -v md5 >/dev/null 2>&1; then - md5cmd=md5 + md5=`md5 "$TAXI_PATH/$1" | sed -e 's/^.* //'` elif command -v md5sum >/dev/null 2>&1; then - md5cmd=md5sum + md5=`md5sum "$TAXI_PATH/$1" | sed -e 's/^.* //'` else echo "${RED} no md5 utility" return fi - md5=`$md5cmd "$TAXI_PATH/$1" | sed -e 's/^.* //'` if [ $md5 = $2 ]; then echo "$GREEN$md5 ok" else -- cgit v1.2.3