Skip to content

Commit

Permalink
not removing /work clas12Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
maureeungaro committed Nov 1, 2024
1 parent 46b0b04 commit 847ba72
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions cron_gemc_artifact_install_jlab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ workdir=/work/clas12/ungaro/tmp
fedoradir=/scigroup/cvmfs/geant4/fedora36-gcc12/clas12Tags/dev/experiments
almadir=/scigroup/cvmfs/geant4/almalinux9-gcc11/clas12Tags/dev/experiments


mkdir -p $workdir
cd $workdir
echo
echo "Cloning clas12Tags repo"
echo
git clone https://github.com/gemc/clas12Tags.git
cd clas12Tags
echo "Cloning or pulling clas12Tags repo"
if [ -d clas12Tags ]; then
cd clas12Tags
git pull
else
git clone https://github.com/gemc/clas12Tags.git
cd clas12Tags
fi

# remove all files in that are not present in the repo
echo "Removing files not present in $fedoradir"
Expand Down Expand Up @@ -50,6 +54,4 @@ cd $almadir/..
$workdir/clas12Tags/bin/get_last_ci_artifact.py almalinux

echo
echo Done. Cleaning up and exiting.
cd $HOME
rm -rf $workdir/clas12Tags
echo Done.

0 comments on commit 847ba72

Please sign in to comment.