Switch from using "[[:space:]]" to just using "[ \t]" (especially so that mawk is an acceptable awk implementation)

This commit is contained in:
Tianon Gravi 2015-12-11 12:26:07 -08:00
parent 2a33dad7b2
commit 1a10df7459
1 changed files with 2 additions and 2 deletions

View File

@ -33,11 +33,11 @@ if [ "$text" ]; then
exit 0 # If not github or no latest tag, we are done here exit 0 # If not github or no latest tag, we are done here
fi fi
dockerfile='https://raw.githubusercontent.com/'"${latest[1]}"'/'"${latest[2]}"'/'"${latest[3]}"'/Dockerfile' 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 # give a little space
echo echo
echo echo
if [ "$baseImage" = "buildpack-deps" ]; then if [ "$baseImage" = 'buildpack-deps' ]; then
f='variant-buildpacks.md' f='variant-buildpacks.md'
else else
f='variant.md' f='variant.md'