Update x2t.sh

This commit is contained in:
tianyu 2015-07-25 15:54:39 +08:00
parent 6ded3100b2
commit 13de8cc2f1
1 changed files with 12 additions and 0 deletions

View File

@ -73,6 +73,16 @@ x2jpg(){
echo 'DONE!'
}
# wait for other x2t jobs done.
while [ -f /tmp/.x2t ]
do
echo "wait other job exit"
sleep 2
done
touch /tmp/.x2t
tmpdir=$(mktemp -d)
if [ "$TYPE"="-z" ]; then
@ -108,3 +118,5 @@ if [ -d "$DIR" ]; then
else
echo "$DIR not exist."
fi
rm /tmp/.x2t