Skip to content

Commit

Permalink
Update php-compatibility-checker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
seyuf authored Mar 8, 2022
1 parent 03a6f68 commit 866dd37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/utils/php-compatibility-checker.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash


MAGE_VERSION=$(grep -ni 'version' magento/composer.json | grep -o -E '\:\ .+' | cut -d' ' -f6 | cut -d',' -f1 | cut -d'"' -f2;);
MAGE_VERSION=$(grep -ni 'version"' magento/composer.json | grep -o -E '\:\ .+' | cut -d' ' -f6 | cut -d',' -f1 | cut -d'"' -f2;);

set -e
echo "Current magento version is $MAGE_VERSION"
Expand Down Expand Up @@ -45,4 +45,4 @@ then
esac
else
echo "No match found"
fi
fi

0 comments on commit 866dd37

Please sign in to comment.