diff --git a/common/common-functions b/common/common-functions index 1fc7745..74219b4 100644 --- a/common/common-functions +++ b/common/common-functions @@ -198,19 +198,21 @@ HEADER="# This file is automatically generated by jhalfs - - #----------------------------------# wrt_target() { # Create target and initialize log file #----------------------------------# local i=$1 local PREV=$2 + case $i in + iteration* ) local LOGFILE=$this_script.log ;; + * ) local LOGFILE=$this_script ;; + esac ( cat << EOF $i: $PREV @\$(call echo_message, Building) - @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n" >logs/$this_script + @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n" >logs/$LOGFILE EOF ) >> $MKFILE.tmp } diff --git a/common/func_compare.sh b/common/func_compare.sh index 50197a0..e4ff4f7 100644 --- a/common/func_compare.sh +++ b/common/func_compare.sh @@ -108,7 +108,6 @@ wrt_logs() { # ( cat << EOF @pushd logs 1> /dev/null && \\ - rm $ITERATION && \\ mkdir $ITERATION && \\ mv ${LOGS} $ITERATION && \\ popd 1> /dev/null