changeset 30793:c7d1b504d026

Use $() syntax instead of backticks, it is easier to nest.
author diego
date Thu, 04 Mar 2010 15:55:35 +0000
parents f89de69d4527
children e4e2bcd96a56
files DOCS/tech/mirrors/update_mplayer_rsync
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/mirrors/update_mplayer_rsync	Thu Mar 04 15:53:56 2010 +0000
+++ b/DOCS/tech/mirrors/update_mplayer_rsync	Thu Mar 04 15:55:35 2010 +0000
@@ -10,7 +10,7 @@
 #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 @@
       --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