summaryrefslogtreecommitdiff
path: root/.zsh_functions/mr_register_puppet_module
blob: 50197566826a40383cb5d1f882fe78ac8c78a3fc (plain)
1
2
3
4
MODULE=$1
cd ${MODULE}
GITURL=$(git remote get-url origin)
echo "[\$HOME/Data/personal/henk/workinprograss/configs/puppet_modules/${MODULE}]\ncheckout = git clone '${GITURL%.git}.git' '$MODULE'" > ~/.config/mr/available.d/puppet_${MODULE}.repo