Fix scripts for FreeBSD
This commit is contained in:
parent
9981ac3346
commit
b126a0400a
2 changed files with 12 additions and 4 deletions
|
@ -19,8 +19,6 @@ else
|
|||
CMD="tail -n 50"
|
||||
fi
|
||||
|
||||
TMP=`mktemp`
|
||||
|
||||
DIRS="./"
|
||||
if [ -d "/var/log/hooks/" ]
|
||||
then
|
||||
|
@ -40,9 +38,14 @@ then
|
|||
|
||||
else
|
||||
|
||||
LIST=`mktemp`
|
||||
if [ `uname -s` = "FreeBSD" ]
|
||||
then
|
||||
LIST=`mktemp lerdorf_log_XXXXX`
|
||||
else
|
||||
LIST=`mktemp`
|
||||
fi
|
||||
|
||||
find $DIRS -name '*.log' > $LIST
|
||||
find $DIRS -name '*.log' > "$LIST"
|
||||
|
||||
while [ $# -gt 0 ]
|
||||
do
|
||||
|
|
Reference in a new issue