|
@@ -85,7 +85,7 @@ showLicense() {
|
85
|
85
|
STARTLINE=$((${STARTLINE%%:*} + 1))
|
86
|
86
|
# Location of license end
|
87
|
87
|
ENDLINE=`grep ${GREPOPTS} "Do you agree to the above license terms?" jre.bin`
|
88
|
|
- ENDLINE=$((${ENDLINE%%:*} - 2))
|
|
88
|
+ ENDLINE=$((${ENDLINE%%:*} - 4))
|
89
|
89
|
|
90
|
90
|
head -n ${ENDLINE} jre.bin | tail ${TAILOPTS}${STARTLINE} > ${FILE}
|
91
|
91
|
fi;
|
|
@@ -160,8 +160,8 @@ if [ $? -eq 0 ]; then
|
160
|
160
|
STARTLINE=`grep ${GREPOPTS} "^more <<\"EOF\"$" jre.bin`
|
161
|
161
|
STARTLINE=${STARTLINE%%:*}
|
162
|
162
|
# Location of license end
|
163
|
|
- ENDLINE=`grep ${GREPOPTS} "If you don't agree to the license you can't install this software" jre.bin`
|
164
|
|
- ENDLINE=$((${ENDLINE%%:*} + 3))
|
|
163
|
+ ENDLINE=`grep ${GREPOPTS} "Do you agree to the above license terms?" jre.bin`
|
|
164
|
+ ENDLINE=$((${ENDLINE%%:*} - 4))
|
165
|
165
|
# Location of checksum start
|
166
|
166
|
CSSTARTLINE=`grep ${GREPOPTS} "^if \[ -x /usr/bin/sum \]; then$" jre.bin`
|
167
|
167
|
CSSTARTLINE=${CSSTARTLINE%%:*}
|