improve scpvp and goarchive
This commit is contained in:
parent
60ee47d269
commit
3bd1d70c5f
1 changed files with 18 additions and 5 deletions
23
functions.sh
23
functions.sh
|
@ -1325,9 +1325,22 @@ pg_drop_and_recreate_db () {
|
||||||
}
|
}
|
||||||
|
|
||||||
scppvp () {
|
scppvp () {
|
||||||
local SERVICE=$1
|
local SERVICE
|
||||||
local SETTINGS="$(ls -t $HOME/git/bmi/at.gv.bmi.common.pvp.settings/target/pvp-settings*|head -n1)"
|
local SVC
|
||||||
local PVPAUTH="$(ls -t ${HOME}/git/bmi/at.gv.bmi.${SERVICE}.pvp.authenticator/target/pvp-*|head -n1)"
|
case $1 in
|
||||||
|
confluence|cnf)
|
||||||
|
SERVICE=confluence
|
||||||
|
SVC=cnf
|
||||||
|
;;
|
||||||
|
jira|jra)
|
||||||
|
SERVICE=jira
|
||||||
|
SVC=jra
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo SVC: $SVC
|
||||||
|
echo SERVICE: $SERVICE
|
||||||
|
local SETTINGS="$(ls -t $HOME/git/bmi/at.gv.bmi.common.pvp.settings/target/at.gv.bmi.atlassian.pvp-settings*|head -n1)"
|
||||||
|
local PVPAUTH="$(ls -t ${HOME}/git/bmi/at.gv.bmi.${SERVICE}.pvp.authenticator/target/at.gv.bmi.atlassian.pvp-authenticator*${SVC}*|head -n1)"
|
||||||
cat << EOF
|
cat << EOF
|
||||||
deploy ${SERVICE}
|
deploy ${SERVICE}
|
||||||
SETTINGS: ${SETTINGS}
|
SETTINGS: ${SETTINGS}
|
||||||
|
@ -1354,8 +1367,7 @@ goarchive () {
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
[0-9]*)
|
||||||
+([0-9]) )
|
|
||||||
ardir="$(xdg-user-dir ARCHIVE)/$(ls $(xdg-user-dir ARCHIVE) |tail -n${1:-1}|head -n1)"
|
ardir="$(xdg-user-dir ARCHIVE)/$(ls $(xdg-user-dir ARCHIVE) |tail -n${1:-1}|head -n1)"
|
||||||
cat << EOF
|
cat << EOF
|
||||||
last few archives:
|
last few archives:
|
||||||
|
@ -1372,6 +1384,7 @@ EOF
|
||||||
else
|
else
|
||||||
[ -e "$(xdg-user-dir ARCHIVE)" ] && cd "$(xdg-user-dir ARCHIVE)"
|
[ -e "$(xdg-user-dir ARCHIVE)" ] && cd "$(xdg-user-dir ARCHIVE)"
|
||||||
fi
|
fi
|
||||||
|
shopt -u extglob
|
||||||
}
|
}
|
||||||
|
|
||||||
#EOF
|
#EOF
|
||||||
|
|
Loading…
Reference in a new issue