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(){
|
||||
|
||||
if [ -d "$WA_REPO" ]; then
|
||||
echo "$WA_REPO does exist, skipping cloning"
|
||||
source $WA_REPO/export_client_name.sh
|
||||
echo "found client name: $CLIENT_NAME"
|
||||
source $HOME/.zshrc
|
||||
|
||||
git_pull
|
||||
else
|
||||
echo -n "client name: "
|
||||
|
|
@ -106,13 +108,10 @@ function init_repos(){
|
|||
cat $HOME/.ssh/deploy_key.pub
|
||||
fi
|
||||
|
||||
|
||||
|
||||
echo " "
|
||||
echo -n "ready to pull? type yes: "
|
||||
read -r ready_to_pull
|
||||
|
||||
|
||||
if [ "$ready_to_pull" = "yes" ]; then
|
||||
start_ssh_agent
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue