wok-current rev 19276
get-vivaldi: fix rpm url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 05 16:47:32 2016 +0200 (2016-07-05) |
parents | 11b5e93cb5f2 |
children | 100bf857d43f |
files | get-vivaldi/stuff/get-vivaldi |
line diff
1.1 --- a/get-vivaldi/stuff/get-vivaldi Tue Jul 05 15:34:01 2016 +0300 1.2 +++ b/get-vivaldi/stuff/get-vivaldi Tue Jul 05 16:47:32 2016 +0200 1.3 @@ -12,7 +12,7 @@ 1.4 # Get link to downloading precompiled package 1.5 dl_page='https://vivaldi.com/download' 1.6 dl_type='32bit RPM' 1.7 -url=$(busybox wget -O - "$dl_page" | fgrep "$dl_type" | cut -d'"' -f2) 1.8 +url=$(busybox wget -O - "$dl_page" | sed "/$dl_type/!d;s|.*href=\"\\([^\"]*\\).*|\\1|") 1.9 if [ -z "$url" ]; then 1.10 echo -e "\nCan't find download link on $dl_page for $dl_type." 1.11 exit 1