Changeset 256 for CCCC/trunk/userinst.sh


Ignore:
Timestamp:
25/11/14 00:15:21 (6 years ago)
Author:
mjuckes
Message:

userinst.sh extended to make bin directory if needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CCCC/trunk/userinst.sh

    r180 r256  
    22 
    33 
    4 target=$HOME/bin/ceda_cc 
     4targetDir=$HOME/bin 
     5target=$targetDir/ceda_cc 
     6 
     7#### 1. Make target directory is not present 
     8############################################### 
     9 
     10if [ ! -d "$targetDir" ]; then 
     11  # Control will enter here if $targetDir doesn't exist. 
     12  echo creating directory $targetDir 
     13  mkdir $targetDir 
     14fi 
     15 
     16#### 2. Create a script 
     17############################################### 
    518 
    619echo Creating bash script in $target 
     
    2134EOF 
    2235 
     36#### 2. Make the script executable 
     37############################################### 
    2338chmod u+x $target  
Note: See TracChangeset for help on using the changeset viewer.