Commit d791660b authored by Luhan Wang's avatar Luhan Wang

aa

parent 2cd33f83
#!/bin/bash
ALL_VMS=$(sudo uvt-kvm list)
VM_NAME="vmtest"
CURRENT_PATH=`pwd`
echo $ALL_VMS
result=$(echo $ALL_VMS | grep "${VM_NAME}")
if [ "$result" == "" ];then
exit 1 ## VM doesn't exist
fi
VM_IP=`sudo uvt-kvm ip ${VM_NAME}`
ssh -T -o StrictHostKeyChecking=no ubuntu@${VM_IP} < $CURRENT_PATH/git-clone-in-vm.sh
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment