From 79a0bd260887df8850d50c01c72b25720843c64e Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 2 Oct 2016 23:09:09 -0700 Subject: [PATCH] gosu check now matches as many digits as are present in the release number. Fixes 1.10 being detected as non-existent 1.1. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e2a48f8..f9d43a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ADD . /webui-aria2 # gosu install latest RUN GITHUB_REPO="https://github.com/tianon/gosu" \ - && LATEST=`curl -s $GITHUB_REPO"/releases/latest" | grep -Eo "[0-9].[0-9]"` \ + && LATEST=`curl -s $GITHUB_REPO"/releases/latest" | grep -Eo "[0-9].[0-9]*"` \ && curl -L $GITHUB_REPO"/releases/download/"$LATEST"/gosu-amd64" > /usr/local/bin/gosu \ && chmod +x /usr/local/bin/gosu