Skip to content

Commit 5601fc4

Browse files
committed
v 0.144.6
Plugin install : - Check WPU Repo if not found in list.
1 parent 30f2dc4 commit 5601fc4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

bin/plugin.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ function wputools__plugin(){
2020
fi;
2121
done
2222

23+
# Check WPU repo if not found in list
24+
if [[ "${_IS_WPU}" == '0' ]];then
25+
if git ls-remote "https://github.com/WordPressUtilities/${_PLUGIN_ID}.git" >/dev/null 2>&1; then
26+
_IS_WPU='1';
27+
fi
28+
fi
29+
2330
# Base vars
2431
local _PLUGIN_DIR="${_CURRENT_DIR}wp-content/plugins/${_PLUGIN_ID}/";
2532
local _MUPLUGIN_DIR="${_CURRENT_DIR}wp-content/mu-plugins/wpu/${_PLUGIN_ID}/";

wputools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
WPUTools(){
44

5-
local _WPUTOOLS_VERSION='0.144.5';
5+
local _WPUTOOLS_VERSION='0.144.6';
66
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)
77
local _PHP_VERSIONS_OBSOLETES=(7.0 7.1 7.2 7.3 7.4 8.0)
88
local _PHP_VERSIONS_ADVANCED=(8.3 8.4 8.5 9.0)

0 commit comments

Comments
 (0)