Use $() syntax instead of backticks, it is easier to nest.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30835 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-03-04 15:55:35 +00:00
parent d19a8ba6d4
commit 64513539c1
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ MAILADR=<report_mail_to_adr>
#TMPDIR = /tmp
#export TMPDIR
TMPFILE=`mktemp -t mplayer.XXXXXXXXXXX`
TMPFILE=$(mktemp -t mplayer.XXXXXXXXXXX)
# Check to see if another sync is in progress
if lockfile -! -l 43200 -r 0 "$LOCK"; then
@ -30,7 +30,7 @@ rsync -pxlrHtWv --delete --delete-after --exclude '/benchmark' \
--exclude '/old_stuff' --exclude '/tests' rsync.mplayerhq.hu::ftp/ \
MPlayer >> $TMPFILE 2>&1
x=`wc -l $TMPFILE | awk '{print $1}'`
x=$(wc -l $TMPFILE | awk '{print $1}')
if [ "$x" -ne "10" ]
then
mailx -s "MPlayer mirror" $MAILADR < $TMPFILE