Use for temporary directory if its set.

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3858 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2008-11-15 14:39:38 +00:00
parent c3a21d4b7f
commit 2c37291989

View file

@ -5,6 +5,7 @@
# - added hash-bang first line
# - documentation
# - removed second function, run them commands as-is
# - use $TMPDIR if it exists
#
# Check web site links once per day, report only when the check had more
# than X errors.
@ -16,7 +17,7 @@
#
die() { echo "$0: $*"; exit 1; }
logfile=/tmp/linkchecker.log
logfile=${TMPDIR-/tmp}/linkchecker.log
[ -z "$1" -o -z "$2" -o -z "$3" ] && die "check_web_links requires three arguments"
do_check=false
if [ ! -f $logfile ]; then