fix rsync source copying command to copy also .git (#153)
This commit is contained in:
@ -17,7 +17,7 @@ ssh $sshopt "sudo rm -rf $work_dir"
|
|||||||
echo "copying stuff to $image machine"
|
echo "copying stuff to $image machine"
|
||||||
ssh $sshopt "mkdir -p $work_dir"
|
ssh $sshopt "mkdir -p $work_dir"
|
||||||
|
|
||||||
rsync -avz --progress --delete -e "ssh $scpopt" ${script_dir}/../../* $sshuser@$IP:./$work_dir/
|
rsync -avz --delete -e "ssh $scpopt" ${script_dir}/../../ $sshuser@$IP:./$work_dir/
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo "Error copying stuff to $box machine"
|
echo "Error copying stuff to $box machine"
|
||||||
exit 2
|
exit 2
|
||||||
|
Reference in New Issue
Block a user