Usage examples :
curl -s https://gist.githubusercontent.com/0m3r/eff7ff873713e7e7223f08c1e7020f35/raw/9b1fe9263a7d64ad7c0869af04b6cf51cd5d319f/detector.sh | bash -s 2.2.0 magento/framework
curl -s https://gist.githubusercontent.com/0m3r/eff7ff873713e7e7223f08c1e7020f35/raw/9b1fe9263a7d64ad7c0869af04b6cf51cd5d319f/detector.sh --output detector.sh
cat detector.sh | bash -s 2.2.0,2.3.0 magento/framework,magento/module-store
cat detector.sh | bash -s magento/product-community-edition 2.2.0,2.3.0 magento/framework,magento/module-store
Check remote file checksum:
curl -s https://gist.githubusercontent.com/0m3r/eff7ff873713e7e7223f08c1e7020f35/raw/9b1fe9263a7d64ad7c0869af04b6cf51cd5d319f/detector.sh | sha1sum
ef26f6439f95b2ad7502218dad96b430b5386866