diff --git a/package.json b/package.json index 7cf6334..6bb6098 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "woocommerce-germanized-shipments", "title": "Shipments for WooCommerce", - "version": "4.2.0", + "version": "4.2.1", "homepage": "https://vendidero.de", "repository": { "type": "git", diff --git a/src/Package.php b/src/Package.php index 9845ba9..d001204 100644 --- a/src/Package.php +++ b/src/Package.php @@ -18,7 +18,7 @@ class Package { * * @var string */ - const VERSION = '4.2.0'; + const VERSION = '4.2.1'; public static $upload_dir_suffix = ''; diff --git a/tests/bin/install.sh b/tests/bin/install.sh index 1ab67ff..c936b94 100755 --- a/tests/bin/install.sh +++ b/tests/bin/install.sh @@ -6,6 +6,32 @@ if [ $# -lt 3 ]; then exit 1 fi +# Function to check if a command exists +command_exists() { + command -v "$1" >/dev/null 2>&1 +} + +# Check if SVN is installed +if command_exists svn; then + echo "SVN is already installed." +else + echo "SVN is not installed. Installing SVN..." + + # Update the package list + sudo apt-get update -y + + # Install SVN + sudo apt-get install -y subversion + + # Verify installation + if command_exists svn; then + echo "SVN was successfully installed." + else + echo "Failed to install SVN. Please check your system configuration." + exit 1 + fi +fi + DB_NAME=$1 DB_USER=$2 DB_PASS=$3 diff --git a/woocommerce-germanized-shipments.php b/woocommerce-germanized-shipments.php index 8aa5a27..25c01fb 100644 --- a/woocommerce-germanized-shipments.php +++ b/woocommerce-germanized-shipments.php @@ -5,7 +5,7 @@ * Description: The Germanized Shipments integration, installed as a feature plugin for development and testing purposes. * Author: vendidero * Author URI: https://vendidero.de - * Version: 4.2.0 + * Version: 4.2.1 * Requires PHP: 5.6 * License: GPLv3 *