tahr 6.0CE(というかwoof-CE)がある現在、ここにコミットしても無意味かとは思いますが、旧版である5系、それも日本語版での話、限定ということで私がいじった部分を晒します。
--- ./getflash 2015-03-09 23:31:05.600683503 +0900
getflash-1.5-1
+++ /usr/sbin/getflash 2015-03-08 13:08:10.000000000 +0900
自前修正分
@@ -92,8 +92,8 @@
#v1.1: CHECKURL, grep -o
#DOWNLOADURL=$(curl -s "$CHECKURL" | grep -o 'http://fpdownload.*inux.i386.tar.gz')
-
+ #
https://fpdownload.macromedia.com/get/f ... 386.tar.gz
case "$ARCH" in
- i?86)DOWNLOADURL=$(curl -s "$CHECKURL" | grep -o 'http://fpdownload.*inux.i386.tar.gz') ;;
- *64)DOWNLOADURL=$(curl -s "$CHECKURL" | grep -o 'http://fpdownload.*inux.x86_64.tar.gz') ;;
+ i?86)DOWNLOADURL=$(curl -s "$CHECKURL" | grep -o 'https://fpdownload.*inux.i386.tar.gz') ;;
+ *64)DOWNLOADURL=$(curl -s "$CHECKURL" | grep -o 'https://fpdownload.*inux.x86_64.tar.gz') ;;
esac
if [ ! "$DOWNLOADURL" ];then
@@ -106,5 +106,5 @@
echo "NEWVERSION=$NEWVERSION"
#v1.1 download size
- LENGTH=$(curl -s -I "$DOWNLOADURL" | grep -i 'Content-Length:' | cut -s -f2 -d':'| tr -dc '0-9') || LENGTH=0
+ LENGTH=$(curl -k -s -I "$DOWNLOADURL" | grep -i 'Content-Length:' | cut -s -f2 -d':'| tr -dc '0-9') || LENGTH=0
NEWMB=$((($LENGTH + 52429) / 104858))
if [ $NEWMB -gt 0 ] ; then
@@ -183,5 +183,5 @@
#echo -e "#!/bin/sh\nwget -O -
http://fpdownload.macromedia.com/get/fl ... 386.tar.gz | tar -xz" > /tmp/delayedrun_flashdl
# v0.9: fix the ownership
- echo -e "#!/bin/sh\nwget -O - $DOWNLOADURL | tar --no-same-owner -xz" > /tmp/delayedrun_flashdl
+ echo -e "#!/bin/sh\nwget --no-check-certificate -O - $DOWNLOADURL | tar --no-same-owner -xz" > /tmp/delayedrun_flashdl
chmod 777 /tmp/delayedrun_flashdl
$RXVT -bg orange -geometry 80x4 -title "$T_title" -e /tmp/delayedrun_flashdl
ファイルのタイムスタンプがおかしいのは、私の癖でタブを使わないため、原版にタブが含まれている行がひっかかるためスペースに変換して保存し直したためです。