Project

General

Profile

« Previous | Next » 

Revision 6066

inputs/.TNRS/tnrs/tnrs.make: Fixed bug where need to use just the basename of $0 as the log file name

View differences:

inputs/.TNRS/tnrs/tnrs.make
2 2
# Runs tnrs_db on VegBIEN
3 3
# Usage: env [log=] self
4 4

  
5
selfName="$(basename $0)"
6

  
5 7
prefix=; . vegbien_dest
6 8

  
7 9
if test -n "${log=1}"; then # $log defaults to 1
8
    exec >>"logs/$0.log.sql" 2>&1
10
    exec >>"logs/$selfName.log.sql" 2>&1
9 11
fi
10 12

  
11 13
set -x

Also available in: Unified diff