Skip to content

Commit 01c8d6a

Browse files
committed
v 0.99.1
- Update BashUtilities. - Use BashUtilities update function when available.
1 parent c64e89b commit 01c8d6a

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

bin/self-update.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ _CURRENT_DIR="${PWD}/";
66

77
# Update WPUTools
88
cd "${_SOURCEDIR}";
9-
if [[ $(git rev-parse --abbrev-ref HEAD) != "main" ]]; then
10-
git checkout master; git checkout main;
11-
fi
12-
git pull origin;
13-
git submodule update --init --recursive;
14-
git fetch --tags;
9+
bashutilities_update_repo_to_latest_main "${_SOURCEDIR}";
1510
_WPUTOOLS_LATEST=$(git describe --tags $(git rev-list --tags --max-count=1));
1611

1712
if [[ "${_WPUTOOLS_VERSION}" == "${_WPUTOOLS_LATEST}" ]]; then

bin/update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ function wputools__update_plugin() {
257257
if [[ -d "${_PLUGIN_DIR}.git" || -f "${_PLUGIN_DIR}.git" ]];then
258258
# If plugin uses git : update from git
259259
echo '# Update from git';
260-
(cd "${_PLUGIN_DIR}"; git checkout master; git checkout main; git pull origin);
260+
bashutilities_update_repo_to_latest_main "${_PLUGIN_DIR}";
261261
else
262262
# Update plugin with WP-CLI
263263
echo '# Update from WP-CLI';

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.99.0';
5+
local _WPUTOOLS_VERSION='0.99.1';
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.2 8.3 8.4 8.5 9.0)

0 commit comments

Comments
 (0)