mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-28 15:48:16 +00:00
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:
parent
c3a21d4b7f
commit
2c37291989
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue