add function to distribute pvp-auth to jra and cnf
This commit is contained in:
parent
4440dbce89
commit
638ac99913
2 changed files with 14 additions and 0 deletions
3
bash_completion.d/publishpvp
Normal file
3
bash_completion.d/publishpvp
Normal 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
11
bin/publishpvp
Executable 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
|
Loading…
Reference in a new issue