Update x2t.sh
This commit is contained in:
parent
6ded3100b2
commit
13de8cc2f1
|
@ -73,6 +73,16 @@ x2jpg(){
|
||||||
echo 'DONE!'
|
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)
|
tmpdir=$(mktemp -d)
|
||||||
|
|
||||||
if [ "$TYPE"="-z" ]; then
|
if [ "$TYPE"="-z" ]; then
|
||||||
|
@ -108,3 +118,5 @@ if [ -d "$DIR" ]; then
|
||||||
else
|
else
|
||||||
echo "$DIR not exist."
|
echo "$DIR not exist."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm /tmp/.x2t
|
||||||
|
|
Loading…
Reference in New Issue