From 429534f20bc6923cae8d921f9d9fc91df15fafc7 Mon Sep 17 00:00:00 2001 From: Darko Gjorgjijoski Date: Tue, 24 Sep 2024 11:31:11 +0200 Subject: [PATCH] Version 1.7.0 --- scripts/release_make.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/release_make.sh b/scripts/release_make.sh index 20c528f..a5d70c4 100644 --- a/scripts/release_make.sh +++ b/scripts/release_make.sh @@ -1,4 +1,15 @@ #! /bin/bash + +# Requirement checking +for cmd in zip unzip svn git +do + if ! command -v "$cmd" 2>&1 >/dev/null + then + echo "Error: <$cmd> could not be found" + exit 1 + fi +done + # A modification of Dean Clatworthy's deploy script at: https://github.com/deanc/wordpress-plugin-git-svn # The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo.