Skip to content

Commit 419ac2b

Browse files
committed
With the new VERSION file version string detection is only possible by running wp-cli
1 parent 8c54240 commit 419ac2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/wp-cli-updatedeb.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ wget -nv -O usr/bin/wp "$PHAR" || die 3 "Phar download failure"
6161
chmod +x usr/bin/wp || die 4 "chmod failure"
6262

6363
# get version
64-
WPCLI_VER="$(grep -ao "define.*WP_CLI_VERSION.*;" usr/bin/wp | cut -d"'" -f4)"
64+
WPCLI_VER="$(usr/bin/wp cli version|cut -d" " -f2)"
6565
[ -z "$WPCLI_VER" ] && die 5 "Cannot get wp-cli version"
6666
echo "Current version: ${WPCLI_VER}"
6767

0 commit comments

Comments
 (0)