Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:51

0001 #!/bin/bash
0002 
0003 export MYDIR=$1
0004 export MYLINK=$2
0005 echo 'Creating link '$MYLINK
0006 
0007 if [ -d $MYLINK ]; then
0008     rm $MYLINK
0009     ln -s $MYDIR $MYLINK
0010 else
0011     ln -s $MYDIR $MYLINK
0012 fi
0013 
0014 if [ -d $MYLINK ]; then
0015     echo '    ... OK'
0016 else
0017     echo '    ... creation failed'
0018     return
0019 fi
0020