gosu check now matches as many digits as are present in the release number. Fixes 1.10 being detected as non-existent 1.1.

This commit is contained in:
Christopher Snowhill 2016-10-02 23:09:09 -07:00
parent 7d5ae4d48b
commit 79a0bd2608

View File

@ -12,7 +12,7 @@ ADD . /webui-aria2
# gosu install latest # gosu install latest
RUN GITHUB_REPO="https://github.com/tianon/gosu" \ 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 \ && curl -L $GITHUB_REPO"/releases/download/"$LATEST"/gosu-amd64" > /usr/local/bin/gosu \
&& chmod +x /usr/local/bin/gosu && chmod +x /usr/local/bin/gosu