mirror of
https://github.com/mpv-player/mpv
synced 2025-03-01 20:00:37 +00:00
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:
parent
d19a8ba6d4
commit
64513539c1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user