Changeset 539 for trunk


Ignore:
Timestamp:
12/05/2011 18:03:53 (6 months ago)
Author:
blee
Message:

check if CONF_EXPORT_FILE exists before trying to move it, fixes #148

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confexport.in

    r528 r539  
    144144# Switch to the new export 
    145145old_conf_export=$(conf_tmp_dir) 
    146 mv "${CONF_EXPORT_FILE}" "${old_conf_export}" || exit 1 
     146if [ -e "${CONF_EXPORT_FILE}" ]; then 
     147        mv "${CONF_EXPORT_FILE}" "${old_conf_export}" || exit 1 
     148fi 
    147149mv "${temp_conf_export}" "${CONF_EXPORT_FILE}" 
    148150 
Note: See TracChangeset for help on using the changeset viewer.