-
Notifications
You must be signed in to change notification settings - Fork 0
/
download_all_files.sh
52 lines (52 loc) · 1.07 KB
/
download_all_files.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
if test -f "video_url1.mp4"
then
continue
else
get_flash_videos http:https://mywebsite.com/video_url1 -f "video_url1.mp4"
fi
if test $? -ne 0
then
if test -f "video_url1.mp4"
then rm "video_url1.mp4"
fi
echo "http:https://mywebsite.com/video_url1">>"problem_downloading.txt"
fi
if test -f "video_url2.mp4"
then
continue
else
get_flash_videos http:https://mywebsite.com/video_url2 -f "video_url2.mp4"
fi
if test $? -ne 0
then
if test -f "video_url2.mp4"
then rm "video_url2.mp4"
fi
echo "http:https://mywebsite.com/video_url2">>"problem_downloading.txt"
fi
if test -f "video_url3.mp4"
then
continue
else
get_flash_videos http:https://mywebsite.com/video_url3 -f "video_url3.mp4"
fi
if test $? -ne 0
then
if test -f "video_url3.mp4"
then rm "video_url3.mp4"
fi
echo "http:https://mywebsite.com/video_url3">>"problem_downloading.txt"
fi
if test -f "video_url4.mp4"
then
continue
else
get_flash_videos http:https://mywebsite.com/video_url4 -f "video_url4.mp4"
fi
if test $? -ne 0
then
if test -f "video_url4.mp4"
then rm "video_url4.mp4"
fi
echo "http:https://mywebsite.com/video_url4">>"problem_downloading.txt"
fi