summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun-tests6
1 files changed, 5 insertions, 1 deletions
diff --git a/run-tests b/run-tests
index 6c2153fa..d0ca0ac6 100755
--- a/run-tests
+++ b/run-tests
@@ -9,7 +9,11 @@
image=denseanalysis/ale
# Create docker image tag based on Dockerfile contents
-image_tag=$(md5sum Dockerfile | cut -d' ' -f1)
+if [ -n "$(command -v md5)" ]; then
+ image_tag=$(md5 -q Dockerfile)
+else
+ image_tag=$(md5sum Dockerfile | cut -d' ' -f1)
+fi
git_version=$(git describe --always --tags)
# Used in all test scripts for running the selected Docker image.