I've optimized the regexp to

targetarch=$(echo "$(expr "$FAI_DEBOOTSTRAP_OPTS" : 
'.*--arch[=[:space:]]\([^[:space:]]*\)' || true)" | tail -n 1)

-- 
regards Thomas

Reply via email to