Skip to content

Commit

Permalink
Simplify adding team ID leading zero's.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldering committed Jun 29, 2013
1 parent 0039f5d commit 844e2c3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions recordteams/record.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/bin/bash

id=$1
if [ $id -lt 10 ]; then
id="00$id";
elif [ $id -lt 100 ]; then
id="0$id";
fi
id=`printf %03d $1`

ffmpeg -i http://192.168.1.141:60$id -vcodec copy -acodec copy -t 60 /share/recording/team$id-`date +%s`.avi > /dev/null 2> /dev/null
mplayer /home/analyst10/Sonar_pings.ogg

0 comments on commit 844e2c3

Please sign in to comment.