Skip to content

Instantly share code, notes, and snippets.

@adrianosferreira
Created January 20, 2016 13:29
Show Gist options
  • Save adrianosferreira/79a6106a6f2707f3b10f to your computer and use it in GitHub Desktop.
Save adrianosferreira/79a6106a6f2707f3b10f to your computer and use it in GitHub Desktop.
#!/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