Created
January 20, 2016 13:29
-
-
Save adrianosferreira/79a6106a6f2707f3b10f to your computer and use it in GitHub Desktop.
This file contains 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 | |
echo "Enter the plugin name that you want to clone" | |
read plugin | |
echo "Enter the branch name that you want to select" | |
read branch | |
rm -rf /users/adriano/toolset/$plugin | |
if [ "$plugin" == "toolset-packager" ]; then | |
git clone -b $branch ssh://git@git.onthegosystems.com:10022/layouts-themes/$plugin.git /users/adriano/toolset/$plugin | |
else | |
git clone -b $branch ssh://git@git.onthegosystems.com:10022/toolset/$plugin.git /users/adriano/toolset/$plugin | |
fi | |
cd /users/adriano/toolset/$plugin | |
composer install --no-autoloader | |
cd ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment