diff options
-rwxr-xr-x | compare_jobs.sh | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/compare_jobs.sh b/compare_jobs.sh index 8d0047c..97176cd 100755 --- a/compare_jobs.sh +++ b/compare_jobs.sh @@ -95,14 +95,21 @@ do done buildtargets= -if [ $# -eq 0 ]; then - # If the user provided no target name, use what we detected - if [ -s ${tmptargets} ]; then - buildtargets=`sort -u ${tmptargets}` - fi -else - # Otherwise, use what the user provided - buildtargets="$@" +# If the user provided no target name, use what we detected +if [ $# -ne 0 ]; then + # Otherwise, use what the user provided, which may be incomplete + # and not include builder_type for instance + rm -f ${tmptargets} + for mytarget in "$@" + do + for dir in `ls -d ${ref_logs}/*${mytarget} ${new_logs}/*${mytarget}` + do + basename ${dir} >> ${tmptargets} + done + done +fi +if [ -s ${tmptargets} ]; then + buildtargets=`sort -u ${tmptargets}` fi rm -f ${tmptargets} |