add function to distribute pvp-auth to jra and cnf

This commit is contained in:
Jakobus Schürz 2020-10-16 16:37:01 +02:00
parent 4440dbce89
commit 638ac99913
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,3 @@
[ -e /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
[ -e /usr/share/bash-completion/completions/ssh ] && . /usr/share/bash-completion/completions/ssh
shopt -u hostcomplete && complete -F _ssh publishpvp

11
bin/publishpvp Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
cd ${HOME}/git/bmi/at.gv.bmi.pvp.settings && scp "$(ls target/at.gv.bmi.pvp.settings*|sort -t"." -k 1,1 -k 2,2 -k 3,3|tail -n1)" ${1}:/tmp
case $1 in
cnf*)
cd ${HOME}/git/bmi/at.gv.bmi.confluence.pvp-authenticator && scp "$(ls target/at.gv.bmi.confluence.pvp*|sort -t"." -k 1,1 -k 2,2 -k 3,3|tail -n1)" ${1}:/tmp
;;
jra*)
cd ${HOME}/git/bmi/pvp-authenticator && scp "$(ls target/at.gv.bmi.jira.pvp*|sort -t"." -k 1,1 -k 2,2 -k 3,3|tail -n1)" ${1}:/tmp
;;
esac