aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2012-08-24 12:36:25 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-08-24 12:36:25 -0600
commit9b02709067af20b3ad3f246e48c30ce593d8de1f (patch)
treea2ccc0493e559a5bd4d8e7d96c83322fe83de191
parent17548e298483f5632b47c3424c434eb09809b0ea (diff)
make trailing slash in binary url optional
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rwxr-xr-xscripts/package_kernel2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package_kernel b/scripts/package_kernel
index 2940ce3..debb387 100755
--- a/scripts/package_kernel
+++ b/scripts/package_kernel
@@ -367,7 +367,7 @@ get_binary_url()
--header "Cookie: redirectlicensephp=200" \
$url \
-O tmp.html
- url=$(grep -Po '(?<=href=").*precise.images.nano.*/\d\d\d?/(?=">)' tmp.html | sort -V | tail -1)
+ url=$(grep -Po '(?<=href=").*precise.images.nano.*/\d\d\d?/?(?=">)' tmp.html | sort -V | tail -1)
wget -q -k --no-cookies \
--header "Cookie: redirectlicensephp=200" \
$url \