fix(ci): softlinking a directory

2 jobs for 15-add-a-link-to-minerva in 1 minute and 1 second (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #116215
build the website

00:00:47

 
  Deploy
failed #116216
Deploy to production

00:00:13

 
Name Stage Failure
failed
Deploy to production Deploy
$ echo "$KNOWNHOSTS" > ~/.ssh/known_hosts
$ chmod 644 ~/.ssh/known_hosts
$ ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/web/r3lab_$CI_JOB_ID"
Warning: Permanently added '[staticpages.lcsb.uni.lu]:8022' (ECDSA) to the list of known hosts.
$ scp -P $SSHPORT -r build/* $SSHCONNECT:~/web/r3lab_$CI_JOB_ID
$ ssh -p $SSHPORT $SSHCONNECT "cd ~/web/latest && ln -fs ../r3lab_$CI_JOB_ID/* . || true && cd ~/web/latest/web/ && ln -fs ../r3lab_$CI_JOB_ID/web/* . && cd cd ~/web && find . -type d -name 'r3lab*' -not -newermt '-1 minutes' -exec rm -rf {} + && find -L ~/web/latest -type l -delete"
ln: './web': cannot overwrite directory
bash: line 0: cd: cd: No such file or directory
ERROR: Job failed: exit code 1