Skip to content

Instantly share code, notes, and snippets.

@drybjed
Created July 14, 2014 15:08
Show Gist options
  • Save drybjed/25eea760f34f58261d5f to your computer and use it in GitHub Desktop.
Save drybjed/25eea760f34f58261d5f to your computer and use it in GitHub Desktop.
#!/bin/bash
prefix="ginas."
cd playbooks/roles/
for dir in *; do
role=$(echo $dir | cut -d. -s -f2)
if [[ "$role" != "" ]]; then
echo "cd $dir ; git remote add origin [email protected]:drybjed/$role"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment