From 8418f984a0d12da0e34c20624b3a2b7caf789aa3 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 13 Mar 2024 18:30:05 +0100 Subject: [PATCH] v 0.88.1 Update : stop if repository if locked. --- bin/update.sh | 5 +++++ wputools.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/update.sh b/bin/update.sh index 6b36f8e..5c43225 100644 --- a/bin/update.sh +++ b/bin/update.sh @@ -17,6 +17,11 @@ if [[ "${1}" == 'help' ]];then return; fi; +# Check lock +if [[ -f "${_CURRENT_DIR}.git/index.lock" ]];then + bashutilities_message "Error : Git repository is locked" 'error'; + return; +fi; _ADMIN_PROTECT_FILE=$(find . -mount -name 'wputh_admin_protect.php'); _ADMIN_PROTECT_FLAG=".disable_wpu_admin_protect"; diff --git a/wputools.sh b/wputools.sh index dd81102..97f676e 100644 --- a/wputools.sh +++ b/wputools.sh @@ -2,7 +2,7 @@ WPUTools(){ -local _WPUTOOLS_VERSION='0.88.0'; +local _WPUTOOLS_VERSION='0.88.1'; local _PHP_VERSIONS=(7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5 9.0) local _PHP_VERSIONS_OBSOLETES=(7.0 7.1 7.2 7.3 7.4) local _PHP_VERSIONS_ADVANCED=(8.2 8.3 8.4 8.5 9.0)