Changeset 19787


Ignore:
Timestamp:
06/10/09 12:38:56 (12 years ago)
Author:
oranfry
Message:

put a simple check for existence before doing replacements in files

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.