commit by to_remotes 2024-04-29 12:45:06 +0200 from vmdevac
parent
3cc29cba80
commit
9df400092e
5
init.sh
5
init.sh
|
|
@ -68,11 +68,13 @@ function start_ssh_agent(){
|
||||||
|
|
||||||
|
|
||||||
function init_repos(){
|
function init_repos(){
|
||||||
|
|
||||||
if [ -d "$WA_REPO" ]; then
|
if [ -d "$WA_REPO" ]; then
|
||||||
echo "$WA_REPO does exist, skipping cloning"
|
echo "$WA_REPO does exist, skipping cloning"
|
||||||
source $WA_REPO/export_client_name.sh
|
source $WA_REPO/export_client_name.sh
|
||||||
echo "found client name: $CLIENT_NAME"
|
echo "found client name: $CLIENT_NAME"
|
||||||
source $HOME/.zshrc
|
source $HOME/.zshrc
|
||||||
|
|
||||||
git_pull
|
git_pull
|
||||||
else
|
else
|
||||||
echo -n "client name: "
|
echo -n "client name: "
|
||||||
|
|
@ -106,13 +108,10 @@ function init_repos(){
|
||||||
cat $HOME/.ssh/deploy_key.pub
|
cat $HOME/.ssh/deploy_key.pub
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo " "
|
echo " "
|
||||||
echo -n "ready to pull? type yes: "
|
echo -n "ready to pull? type yes: "
|
||||||
read -r ready_to_pull
|
read -r ready_to_pull
|
||||||
|
|
||||||
|
|
||||||
if [ "$ready_to_pull" = "yes" ]; then
|
if [ "$ready_to_pull" = "yes" ]; then
|
||||||
start_ssh_agent
|
start_ssh_agent
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue