From 1a10df7459dc6eca572a82a2f8b3d5f2a0845d78 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 11 Dec 2015 12:26:07 -0800 Subject: [PATCH] Switch from using "[[:space:]]" to just using "[ \t]" (especially so that mawk is an acceptable awk implementation) --- .template-helpers/variant.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.template-helpers/variant.sh b/.template-helpers/variant.sh index aa0d24d4c..62989ff5c 100755 --- a/.template-helpers/variant.sh +++ b/.template-helpers/variant.sh @@ -33,11 +33,11 @@ if [ "$text" ]; then exit 0 # If not github or no latest tag, we are done here fi dockerfile='https://raw.githubusercontent.com/'"${latest[1]}"'/'"${latest[2]}"'/'"${latest[3]}"'/Dockerfile' - baseImage=$(curl -fsSL "$dockerfile" | awk -F '[:[:space:]]+' '$1 == "FROM" { print $2 }') + baseImage=$(curl -fsSL "$dockerfile" | awk -F '[: \t]+' '$1 == "FROM" { print $2 }') # give a little space echo echo - if [ "$baseImage" = "buildpack-deps" ]; then + if [ "$baseImage" = 'buildpack-deps' ]; then f='variant-buildpacks.md' else f='variant.md'