We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c54240 commit 419ac2bCopy full SHA for 419ac2b
utils/wp-cli-updatedeb.sh
100644
100755
@@ -61,7 +61,7 @@ wget -nv -O usr/bin/wp "$PHAR" || die 3 "Phar download failure"
61
chmod +x usr/bin/wp || die 4 "chmod failure"
62
63
# get version
64
-WPCLI_VER="$(grep -ao "define.*WP_CLI_VERSION.*;" usr/bin/wp | cut -d"'" -f4)"
+WPCLI_VER="$(usr/bin/wp cli version|cut -d" " -f2)"
65
[ -z "$WPCLI_VER" ] && die 5 "Cannot get wp-cli version"
66
echo "Current version: ${WPCLI_VER}"
67
0 commit comments