Last active
December 22, 2015 19:49
-
-
Save gjedeer/6522319 to your computer and use it in GitHub Desktop.
One-liner to detect Joomla version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cd /your/joomla/directory | |
if [ -f includes/version.php ]; then echo 1.0 DETECTED; grep var\ \$RELEASE includes/version.php; grep var\ \$DEV_LEVEL includes/version.php; fi; if [ -f libraries/joomla/version.php ]; then echo 1.5 DETECTED; grep var\ \$RELEASE libraries/joomla/version.php; grep var\ \$DEV_LEVEL libraries/joomla/version.php; fi; if [ -f joomla.xml ]; then echo 2.5+ DETECTED; grep \<version\> joomla.xml; fi; if [ -f libraries/cms/version/version.php ]; then echo 2.5+ DETECTED; grep public\ \$RELEASE libraries/cms/version/version.php; grep public\ \$DEV_LEVEL libraries/cms/version/version.php; fi; | |
# One-liner to detect Joomla version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment