[install.sh] Check prefix and/or create it
If a user has a prefix directory created at /home/romanov/eic/anl_containers
setup fails as no local/lib/
is in there which is very confusing.
curl -L get.athena-eic.org| bash -s -- -p /home/romanov/eic/anl_containers
# ...
Deploying jug_xl version nightly
Install prefix: /tmp/ci-qYoDQjRQ8K
Creating install prefix if needed...
- /tmp/ci-qYoDQjRQ8K/bin
- /tmp/ci-qYoDQjRQ8K/lib
- /tmp/ci-qYoDQjRQ8K/libexec
Downloading container from: https://eicweb.phy.anl.gov/api/v4/projects/290/jobs/artifacts/master/raw/build/jug_xl.sif?job=jug_xl:singularity:nightly
Destination: /tmp/ci-qYoDQjRQ8K/lib/jug_xl-nightly.sif
Very long wait here, like 20 minutes
Configuring applications launchers:
- creating /tmp/ci-qYoDQjRQ8K/bin/eic-shell
Container deployment successful!
mv: cannot move 'lib/jug_xl-nightly.sif' to '/home/romanov/eic/anl_containers/local/lib/jug_xl-nightly.sif': No such file or directory
chmod: cannot access '/home/romanov/eic/anl_containers/local/lib/jug_xl-nightly.sif': No such file or directory
~
/home/romanov/eic/anl_containers/local/lib/jug_xl-nightly.sif
ls: cannot access '/home/romanov/eic/anl_containers/local/lib/jug_xl-nightly.sif': No such file or directory
ERROR: no singularity image found
Would be good if script at least says like
<what was in $PREFIX>/local/lib does not exist, create it first
Or better just automatically creates it