Changeset 19787

Show
Ignore:
Timestamp:
10.06.2009 12:38:56 (10 years ago)
Author:
oranfry
Message:

put a simple check for existence before doing replacements in files

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/packages/apache-httpd/install-bindist.sh

    r19036 r19787  
    105105 
    106106for one_file in $REPLACELIST; do 
    107     sed -e "s%\*\*APACHE_HOME_OS\*\*%$SR%" "$one_file" > "$one_file.tmp" 
    108     mv $one_file.tmp $one_file 
    109     chmod u+w $one_file 
     107    if [ -f $one_file ]; then 
     108        sed -e "s%\*\*APACHE_HOME_OS\*\*%$SR%" "$one_file" > "$one_file.tmp" 
     109        mv $one_file.tmp $one_file 
     110        chmod u+w $one_file 
     111    fi 
    110112done 
    111113