diff options
Diffstat (limited to 'update_pkg.sh')
-rwxr-xr-x | update_pkg.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update_pkg.sh b/update_pkg.sh index a8779390f146..16872cba49c1 100755 --- a/update_pkg.sh +++ b/update_pkg.sh @@ -1,6 +1,6 @@ #!/bin/bash REPO='http://security.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/' -PACKAGE=$(wget -qO- $REPO | perl -ne '/(?<=href=")(chromium-codecs-ffmpeg-extra_(.*?)-(\w{8}).(.*?)_amd64.deb)(?=")/ and print "$1#$2#$3#$4\n";' | sort | tail -n 1) +PACKAGE=$(wget -qO- $REPO | perl -ne '/(?<=href=")(chromium-codecs-ffmpeg-extra_(\d*\.\d*\.\d*\.\d*)-(\dubuntu\d).(\d{2}\.\d{2}(?:\.\d)?)_amd64.deb)(?=").*\d*\.\d*M/ and print "$1#$2#$3#$4\n";' | sort | tail -n 1) deb=$(echo $PACKAGE | cut -d# -f1) ver1=$(echo $PACKAGE | cut -d# -f2) |