https://github.com/Hebime/magick-installer/blob/master/magick-installer.sh