Fix home directory issue
This commit is contained in:
parent
dd72a873ab
commit
3d834933e7
@ -7,17 +7,17 @@ wx-infra(){
|
||||
|
||||
case $USERNAME in
|
||||
cwchristerw)
|
||||
if [[ -d "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra" ]]
|
||||
if [[ -d "$HOME/Desktop/Work in Progress/Programming/warengroup/infra" ]]
|
||||
then
|
||||
INFRA_PATH="/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||
INFRA_PATH="$HOME/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||
else
|
||||
if [[ -d "~/.warengroup/infra" ]]
|
||||
if [[ -d "$HOME/.warengroup/infra" ]]
|
||||
then
|
||||
INFRA_PATH="~/.warengroup/infra"
|
||||
INFRA_PATH="$HOME/.warengroup/infra"
|
||||
else
|
||||
INFRA_PATH="~/.warengroup/infra"
|
||||
INFRA_PATH="$HOME/.warengroup/infra"
|
||||
mkdir -p "$INFRA_PATH" &> /dev/null
|
||||
git clone ssh://git@git.waren.io:2222/warengroup-private/infra.git --config core.sshCommand="ssh -i ~/.ssh/keys/warengroup-legacy -o ProxyJump=none" "$INFRA_PATH"
|
||||
git clone ssh://git@git.waren.io:2222/warengroup-private/infra.git --config core.sshCommand="ssh -i $HOME/.ssh/keys/warengroup-legacy -o ProxyJump=none" "$INFRA_PATH"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
12
wx
12
wx
@ -140,17 +140,17 @@ wx-infra(){
|
||||
|
||||
case $USERNAME in
|
||||
cwchristerw)
|
||||
if [[ -d "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra" ]]
|
||||
if [[ -d "$HOME/Desktop/Work in Progress/Programming/warengroup/infra" ]]
|
||||
then
|
||||
INFRA_PATH="/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||
INFRA_PATH="$HOME/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||
else
|
||||
if [[ -d "~/.warengroup/infra" ]]
|
||||
if [[ -d "$HOME/.warengroup/infra" ]]
|
||||
then
|
||||
INFRA_PATH="~/.warengroup/infra"
|
||||
INFRA_PATH="$HOME/.warengroup/infra"
|
||||
else
|
||||
INFRA_PATH="~/.warengroup/infra"
|
||||
INFRA_PATH="$HOME/.warengroup/infra"
|
||||
mkdir -p "$INFRA_PATH" &> /dev/null
|
||||
git clone ssh://git@git.waren.io:2222/warengroup-private/infra.git --config core.sshCommand="ssh -i ~/.ssh/keys/warengroup-legacy -o ProxyJump=none" "$INFRA_PATH"
|
||||
git clone ssh://git@git.waren.io:2222/warengroup-private/infra.git --config core.sshCommand="ssh -i $HOME/.ssh/keys/warengroup-legacy -o ProxyJump=none" "$INFRA_PATH"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user