From 6885d2a572e127083c2ae72832e373e752db2db5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= <gael@xfce.org>
Date: Sun, 31 Jan 2021 20:47:00 +0100
Subject: [PATCH] xfce-do-release: Check for `docker` installed

---
 helpers/xfce-do-release | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/helpers/xfce-do-release b/helpers/xfce-do-release
index bf91711..c1f6794 100755
--- a/helpers/xfce-do-release
+++ b/helpers/xfce-do-release
@@ -28,10 +28,12 @@ sanity_checks () {
 		git status --untracked-files=no -s
 		read -n 1 -s -p "Do you really want to continue?"
 	fi
-	if which xfce-build >/dev/null; then
+	if ! which docker &>/dev/null; then
+		echo "INFO: please install docker to support building in a clean environment."
+	elif which xfce-build &>/dev/null; then
 		export TAG="xfce-build"
 		echo "Working with the 'xfce-build' script and container."
-	elif ! which xfce-test >/dev/null; then
+	elif ! which xfce-test &>/dev/null; then
 		echo "INFO: please install xfce-test to support building in a clean environment. See https://github.com/schuellerf/xfce-test"
 	else
 		images=$(docker images|grep -Po "(?<=^schuellerf/xfce-test) +[^ ]+"|tr -d ' ')
-- 
GitLab