append .txt to the log files. Make it easyer to open on Windows.

pull/10/head
Raphaël Vinot 2013-08-04 18:30:59 +02:00
parent a0f168facb
commit a67f5e7109
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ source ./constraint_conv.sh
RECURSIVE_ARCHIVE_MAX=3
RECURSIVE_ARCHIVE_CURRENT=0
ARCHIVE_BOMB=0
LOGFILE="${LOGS}/processing"
LOGFILE="${LOGS}/processing.txt"
# Something went wrong.
error_handler(){

View File

@ -97,13 +97,13 @@ do
echo "${partition} mounted at ${SRC}"
# Print the filenames on the current partition in a logfile
find "${SRC}" -fls "${LOGS}/Content_partition_${PARTCOUNT}"
find "${SRC}" -fls "${LOGS}/Content_partition_${PARTCOUNT}.txt"
# create a directory on ${DST} named PARTION_$PARTCOUNT
target_dir="${DST}/FROM_PARTITION_${PARTCOUNT}"
echo "copying to: ${target_dir}"
mkdir -p "${target_dir}"
LOGFILE="${LOGS}/processing"
LOGFILE="${LOGS}/processing.txt"
echo "==== Starting processing of ${SRC} to ${target_dir}. ====" >> ${LOGFILE}
main ${target_dir}