summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2024-06-20 17:33:28 +0200
committerHendrik Jäger <gitcommit@henk.geekmail.org>2024-06-20 17:33:28 +0200
commitbe52c3eb36089932f1c13a0d4ad99a33f4f44eea (patch)
tree161da38feb929d4e33564fd8befa5b6b362f97bb
parentcae05509110f34ce42780e10ae518f4fb4d3ea0a (diff)
add function for registering puppet module repos in myrepos
-rw-r--r--.zsh_functions/mr_register_puppet_module4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zsh_functions/mr_register_puppet_module b/.zsh_functions/mr_register_puppet_module
new file mode 100644
index 0000000..5019756
--- /dev/null
+++ b/.zsh_functions/mr_register_puppet_module
@@ -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