2020-10-16 16:37:01 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-10-16 16:43:01 +02:00
|
|
|
echo "copy files to ${1}"
|
2020-10-17 03:09:51 +02:00
|
|
|
#cd ${HOME}/git/bmi/at.gv.bmi.pvp.settings && echo scp "$(ls target/at.gv.bmi.pvp.settings*|sort -t"." -k 1,1 -k 2,2 -k 3,3|tail -n1)" ${1}:/tmp
|
2020-10-16 16:37:01 +02:00
|
|
|
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*)
|
2020-10-17 03:09:51 +02:00
|
|
|
# cd ${HOME}/git/bmi/at.gv.bmi.confluence.pvp-authenticator && echo scp "$(ls target/at.gv.bmi.confluence.pvp*|sort -t"." -k 1,1 -k 2,2 -k 3,3|tail -n1)" ${1}:/tmp
|
2020-10-16 16:37:01 +02:00
|
|
|
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*)
|
2020-10-17 03:09:51 +02:00
|
|
|
# cd ${HOME}/git/bmi/pvp-authenticator && echo scp "$(ls target/at.gv.bmi.jira.pvp*|sort -t"." -k 1,1 -k 2,2 -k 3,3|tail -n1)" ${1}:/tmp
|
2020-10-16 16:37:01 +02:00
|
|
|
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
|