Changeset 4054 in genesis for tools


Ignore:
Timestamp:
Mar 14, 2005, 2:20:17 AM (20 years ago)
Author:
rick
Message:

Fixed paar foutjes als files niet bekend waren

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config-node.sh

    r4053 r4054  
    235235
    236236do_move() {
    237 rm ${dir}/${i}.bak
    238 mv ${dir}/${i} ${dir}/${i}.bak \
    239         || cleanexit 1
    240 log backuped ${dir}/${i}
    241 
    242 mv ${dir}/${i}.new ${dir}/${i} \
    243         || cleanexit 1
    244 log updated ${dir}/${i}
     237if [ -x ${dir}/${i}.bak ]; then
     238  rm ${dir}/${i}.bak
     239fi
     240
     241if [ -x ${dir}/${i} ]; then
     242  mv ${dir}/${i} ${dir}/${i}.bak  || cleanexit 1
     243  log backup ${dir}/${i} to ${dir}/${i}.bak
     244fi
     245
     246mv ${dir}/${i}.new ${dir}/${i} || cleanexit 1
     247  log updated ${dir}/${i}
    245248}
    246249
Note: See TracChangeset for help on using the changeset viewer.