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