ci: use `fpsync` instead of `cp`

This change replaces `cp` with `fpsync` when copying over repositories
from the shared EFS drive. `fpsync` improves upon `cp` by parallelising
copies, which copies from ElasticFS benefit significantly from.

Signed-off-by: Chris Kay <chris.kay@arm.com>
Change-Id: I925f6f9207b489e06fff535697f3df8f9da10c7f
diff --git a/scripts/clone.sh b/scripts/clone.sh
index f976639..a349663 100755
--- a/scripts/clone.sh
+++ b/scripts/clone.sh
@@ -135,7 +135,7 @@
 fi
 git log -1
 cd $OLDPWD
-cp -a -f ${SHARE_FOLDER}/${JOBS_REPO_NAME} ${PWD}/${JOBS_REPO_NAME}
+fpsync ${SHARE_FOLDER}/${JOBS_REPO_NAME} ${PWD}/${JOBS_REPO_NAME}
 
 # clone git repos
 for repo in ${!repos_map[@]}; do
@@ -206,6 +206,5 @@
 
     # copy repository into pwd dir (workspace in CI), so each job would work
     # on its own workspace
-    cp -a -f ${SHARE_FOLDER}/${REPO_NAME} ${PWD}/${REPO_NAME}
-
+    fpsync ${SHARE_FOLDER}/${REPO_NAME} ${PWD}/${REPO_NAME}
 done