do not exit

Signed-off-by: Jessica Frazelle <princess@docker.com>
This commit is contained in:
Jessica Frazelle 2015-06-05 18:13:42 -07:00
parent f85a0a6963
commit 4dab198ac5

View File

@ -20,7 +20,7 @@ RUN { \
echo '\tlocal VERSION=$1'; \ echo '\tlocal VERSION=$1'; \
echo '\n\tif [[ -z $VERSION ]]; then'; \ echo '\n\tif [[ -z $VERSION ]]; then'; \
echo '\t\techo "Please specify a kernel version."'; \ echo '\t\techo "Please specify a kernel version."'; \
echo '\t\texit 1'; \ echo '\t\treturn 1'; \
echo '\tfi\n'; \ echo '\tfi\n'; \
echo '\tlocal MAJOR_VERSION=${VERSION:0:1}'; \ echo '\tlocal MAJOR_VERSION=${VERSION:0:1}'; \
echo '\n\t[ -d /usr/src/linux-${VERSION} ] || curl -sSL https://www.kernel.org/pub/linux/kernel/v${MAJOR_VERSION}.x/linux-${VERSION}.tar.xz | tar -v -C /usr/src -xJ'; \ echo '\n\t[ -d /usr/src/linux-${VERSION} ] || curl -sSL https://www.kernel.org/pub/linux/kernel/v${MAJOR_VERSION}.x/linux-${VERSION}.tar.xz | tar -v -C /usr/src -xJ'; \