curl -s https://gist.githubusercontent.com/0m3r/02a416bea76ceedbc71f1063e7e0c26e/raw/e4e82030084a520987a3169991678315ec38d394/command | bash -s
Last active
January 9, 2024 10:42
-
-
Save 0m3r/02a416bea76ceedbc71f1063e7e0c26e to your computer and use it in GitHub Desktop.
Install all swissup modules and theme oneline command
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
#!/bin/bash | |
COMPOSER_BIN='composer'; | |
if [ -x 'bin/composer' ] | |
then | |
COMPOSER_BIN='bin/composer'; | |
fi | |
$COMPOSER_BIN config repositories.swissup composer https://docs.swissuplabs.com/packages/ | |
$COMPOSER_BIN config repositories.packagist false | |
packages=$($COMPOSER_BIN show --available | grep "swissup/module-\|swissup/theme-" | cut -d ' ' -f 1 | tr '\n\012\015' ' '); | |
composer config --unset repositories.packagist | |
for PACKAGE in $packages; do | |
echo "Installing $PACKAGE" | |
$COMPOSER_BIN require --prefer-source --ignore-platform-reqs $PACKAGE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment