X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/87eaf275d4957b93583b9dcfb71d06f798533aca..80ed3c35148702b339ffd77d5a058ea4c693dcef:/confsubst.in diff --git a/confsubst.in b/confsubst.in index 285e0312..f9ba37bd 100755 --- a/confsubst.in +++ b/confsubst.in @@ -78,8 +78,7 @@ for fixup; do *?=*) ;; *) echo >&2 "$0: bad substitution: $fixup"; exit 1 ;; esac - tag=$(echo "$fixup" | sed 's/=.*$//') && \ - value=$(echo "$fixup" | sed 's/^[^=]*=//') && \ + tag=${fixup%%=*} value=${fixup#*=} subst="$subst s@$tag@$valueg;" done