diff --git a/src/commands/infra.sh b/src/commands/infra.sh index 685a6fc..e1abbd0 100644 --- a/src/commands/infra.sh +++ b/src/commands/infra.sh @@ -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 diff --git a/wx b/wx index 685a0d0..f38a93b 100755 --- a/wx +++ b/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