Add secondary Infra repo path to Infra command
This commit is contained in:
parent
42239ef54d
commit
b52f1d4486
@ -5,10 +5,21 @@ wx-infra(){
|
|||||||
wx-header "Infra"
|
wx-header "Infra"
|
||||||
wx-restricted
|
wx-restricted
|
||||||
|
|
||||||
INFRA_PATH="/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
|
||||||
|
|
||||||
case $USERNAME in
|
case $USERNAME in
|
||||||
cwchristerw)
|
cwchristerw)
|
||||||
|
if [[ -d "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra" ]]
|
||||||
|
then
|
||||||
|
INFRA_PATH="/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||||
|
else
|
||||||
|
if [[ -d "~/.warengroup/infra" ]]
|
||||||
|
then
|
||||||
|
INFRA_PATH="~/.warengroup/infra"
|
||||||
|
else
|
||||||
|
INFRA_PATH="~/.warengroup/infra"
|
||||||
|
git clone ssh://git@git.waren.io:2222/warengroup-private/infra.git --config core.sshCommand="ssh -i ~/.ssh/keys/warengroup-legacy" "$INFRA_PATH"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z $1 ]]
|
if [[ -z $1 ]]
|
||||||
then
|
then
|
||||||
echo "Tag Required"
|
echo "Tag Required"
|
||||||
|
15
wx
15
wx
@ -138,10 +138,21 @@ wx-infra(){
|
|||||||
wx-header "Infra"
|
wx-header "Infra"
|
||||||
wx-restricted
|
wx-restricted
|
||||||
|
|
||||||
INFRA_PATH="/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
|
||||||
|
|
||||||
case $USERNAME in
|
case $USERNAME in
|
||||||
cwchristerw)
|
cwchristerw)
|
||||||
|
if [[ -d "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra" ]]
|
||||||
|
then
|
||||||
|
INFRA_PATH="/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||||
|
else
|
||||||
|
if [[ -d "~/.warengroup/infra" ]]
|
||||||
|
then
|
||||||
|
INFRA_PATH="~/.warengroup/infra"
|
||||||
|
else
|
||||||
|
INFRA_PATH="~/.warengroup/infra"
|
||||||
|
git clone ssh://git@git.waren.io:2222/warengroup-private/infra.git --config core.sshCommand="ssh -i ~/.ssh/keys/warengroup-legacy" "$INFRA_PATH"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z $1 ]]
|
if [[ -z $1 ]]
|
||||||
then
|
then
|
||||||
echo "Tag Required"
|
echo "Tag Required"
|
||||||
|
Loading…
Reference in New Issue
Block a user