]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
add function for registering puppet module repos in myrepos master
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Thu, 20 Jun 2024 15:33:28 +0000 (17:33 +0200)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Thu, 20 Jun 2024 15:33:28 +0000 (17:33 +0200)
.zsh_functions/mr_register_puppet_module [new file with mode: 0644]

diff --git a/.zsh_functions/mr_register_puppet_module b/.zsh_functions/mr_register_puppet_module
new file mode 100644 (file)
index 0000000..5019756
--- /dev/null
@@ -0,0 +1,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