Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /physics_benchmarks/bin/mkdir_local_data_link was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #!/bin/sh
0002 set -eu
0003 
0004 dirname="$1"
0005 if [ -d "${LOCAL_DATA_PATH}/${dirname}" ]; then
0006   echo "local data directory already exists"
0007 else
0008   mkdir -p "${LOCAL_DATA_PATH}/${dirname}"
0009 fi
0010 if [ -d "${dirname}" ]; then
0011   echo "link or directory exists in current directory"
0012 else
0013   ln -s "${LOCAL_DATA_PATH}/${dirname}" "${dirname}"
0014 fi