diff options
author | John Rigby <john.rigby@linaro.org> | 2012-08-24 12:36:25 -0600 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-08-24 12:36:25 -0600 |
commit | 9b02709067af20b3ad3f246e48c30ce593d8de1f (patch) | |
tree | a2ccc0493e559a5bd4d8e7d96c83322fe83de191 | |
parent | 17548e298483f5632b47c3424c434eb09809b0ea (diff) |
make trailing slash in binary url optional
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rwxr-xr-x | scripts/package_kernel | 2 |
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 \ |