mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-09-22 11:59:23 +08:00
Update x2t.sh
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user