File tree 6 files changed +44
-8
lines changed
6 files changed +44
-8
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,16 @@ index=0
43
43
while [ " $index " -lt " $count " ]
44
44
do
45
45
# only download it if you don't already have it.
46
- if [ ! -f " ${PACKAGES[$index]} .tar" ]
46
+ if [ ! -f " ${PACKAGES[$index]} .tar" -a ! -f " ${PACKAGES[$index]} .tar.gz " ]
47
47
then
48
48
wget " ${URLS[@]: $index : 1} "
49
49
fi
50
+
51
+ # extract
52
+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
53
+ then
54
+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
55
+ fi
50
56
if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
51
57
then
52
58
bunzip2 -df " ${PACKAGES[$index]} .tar.bz2"
Original file line number Diff line number Diff line change @@ -43,10 +43,16 @@ index=0
43
43
while [ " $index " -lt " $count " ]
44
44
do
45
45
# only download it if you don't already have it.
46
- if [ ! -f " ${PACKAGES[$index]} .tar" ]
46
+ if [ ! -f " ${PACKAGES[$index]} .tar" -a ! -f " ${PACKAGES[$index]} .tar.gz " ]
47
47
then
48
48
wget " ${URLS[@]: $index : 1} "
49
49
fi
50
+
51
+ # extract
52
+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
53
+ then
54
+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
55
+ fi
50
56
if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
51
57
then
52
58
bunzip2 -df " ${PACKAGES[$index]} .tar.bz2"
Original file line number Diff line number Diff line change @@ -42,10 +42,16 @@ index=0
42
42
while [ " $index " -lt " $count " ]
43
43
do
44
44
# only download it if you don't already have it.
45
- if [ ! -f " ${PACKAGES[$index]} .tar" ]
45
+ if [ ! -f " ${PACKAGES[$index]} .tar" -a ! -f " ${PACKAGES[$index]} .tar.gz " ]
46
46
then
47
47
wget " ${URLS[@]: $index : 1} "
48
48
fi
49
+
50
+ # extract
51
+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
52
+ then
53
+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
54
+ fi
49
55
if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
50
56
then
51
57
bunzip2 -df " ${PACKAGES[$index]} .tar.bz2"
Original file line number Diff line number Diff line change @@ -43,9 +43,15 @@ index=0
43
43
while [ " $index " -lt " $count " ]
44
44
do
45
45
# only download it if you don't already have it.
46
- if [ ! -f " ${PACKAGES[$index]} .tar" ]
46
+ if [ ! -f " ${PACKAGES[$index]} .tar" -a ! -f " ${PACKAGES[$index]} .tar.gz " ]
47
47
then
48
- wget -O " ${PACKAGES[$index]} .tar.bz2" " ${URLS[@]: $index : 1} "
48
+ wget " ${URLS[@]: $index : 1} "
49
+ fi
50
+
51
+ # extract
52
+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
53
+ then
54
+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
49
55
fi
50
56
if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
51
57
then
Original file line number Diff line number Diff line change @@ -43,9 +43,15 @@ index=0
43
43
while [ " $index " -lt " $count " ]
44
44
do
45
45
# only download it if you don't already have it.
46
- if [ ! -f " ${PACKAGES[$index]} .tar" ]
46
+ if [ ! -f " ${PACKAGES[$index]} .tar" -a ! -f " ${PACKAGES[$index]} .tar.gz " ]
47
47
then
48
- wget -O " ${PACKAGES[$index]} .tar.bz2" " ${URLS[@]: $index : 1} "
48
+ wget " ${URLS[@]: $index : 1} "
49
+ fi
50
+
51
+ # extract
52
+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
53
+ then
54
+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
49
55
fi
50
56
if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
51
57
then
Original file line number Diff line number Diff line change @@ -43,10 +43,16 @@ index=0
43
43
while [ " $index " -lt " $count " ]
44
44
do
45
45
# only download it if you don't already have it.
46
- if [ ! -f " ${PACKAGES[$index]} .tar" ]
46
+ if [ ! -f " ${PACKAGES[$index]} .tar" -a ! -f " ${PACKAGES[$index]} .tar.gz " ]
47
47
then
48
48
wget " ${URLS[@]: $index : 1} "
49
49
fi
50
+
51
+ # extract
52
+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
53
+ then
54
+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
55
+ fi
50
56
if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
51
57
then
52
58
bunzip2 -df " ${PACKAGES[$index]} .tar.bz2"
You can’t perform that action at this time.
0 commit comments