File tree Expand file tree Collapse file tree 6 files changed +44
-8
lines changed Expand file tree Collapse file tree 6 files changed +44
-8
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,16 @@ index=0
4343while [ " $index " -lt " $count " ]
4444do
4545 # 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 " ]
4747 then
4848 wget " ${URLS[@]: $index : 1} "
4949 fi
50+
51+ # extract
52+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
53+ then
54+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
55+ fi
5056 if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
5157 then
5258 bunzip2 -df " ${PACKAGES[$index]} .tar.bz2"
Original file line number Diff line number Diff line change @@ -43,10 +43,16 @@ index=0
4343while [ " $index " -lt " $count " ]
4444do
4545 # 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 " ]
4747 then
4848 wget " ${URLS[@]: $index : 1} "
4949 fi
50+
51+ # extract
52+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
53+ then
54+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
55+ fi
5056 if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
5157 then
5258 bunzip2 -df " ${PACKAGES[$index]} .tar.bz2"
Original file line number Diff line number Diff line change @@ -42,10 +42,16 @@ index=0
4242while [ " $index " -lt " $count " ]
4343do
4444 # 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 " ]
4646 then
4747 wget " ${URLS[@]: $index : 1} "
4848 fi
49+
50+ # extract
51+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
52+ then
53+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
54+ fi
4955 if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
5056 then
5157 bunzip2 -df " ${PACKAGES[$index]} .tar.bz2"
Original file line number Diff line number Diff line change @@ -43,9 +43,15 @@ index=0
4343while [ " $index " -lt " $count " ]
4444do
4545 # 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 " ]
4747 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"
4955 fi
5056 if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
5157 then
Original file line number Diff line number Diff line change @@ -43,9 +43,15 @@ index=0
4343while [ " $index " -lt " $count " ]
4444do
4545 # 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 " ]
4747 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"
4955 fi
5056 if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
5157 then
Original file line number Diff line number Diff line change @@ -43,10 +43,16 @@ index=0
4343while [ " $index " -lt " $count " ]
4444do
4545 # 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 " ]
4747 then
4848 wget " ${URLS[@]: $index : 1} "
4949 fi
50+
51+ # extract
52+ if [ -f " ${PACKAGES[$index]} .tar.gz" ]
53+ then
54+ tar -zxvf " ${PACKAGES[$index]} .tar.gz"
55+ fi
5056 if [ -f " ${PACKAGES[$index]} .tar.bz2" ]
5157 then
5258 bunzip2 -df " ${PACKAGES[$index]} .tar.bz2"
You can’t perform that action at this time.
0 commit comments