We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d248af6 commit ffa5643Copy full SHA for ffa5643
bin/validate-plugin-version.sh
@@ -14,6 +14,14 @@ main(){
14
echo "Plugin path: $PLUGIN_PATH"
15
fi
16
17
+ ls -la $PLUGIN_PATH
18
+
19
+ # Check if the plugin path exists.
20
+ if [[ ! -d "${PLUGIN_PATH}" ]]; then
21
+ echo "Plugin path does not exist."
22
+ exit 1
23
+ fi
24
25
local CURRENT_WP_VERSION
26
CURRENT_WP_VERSION=$(curl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r '.offers[0].current')
27
echo "Current WordPress Version: ${CURRENT_WP_VERSION}"
0 commit comments