diff options
author | Stefan Eßer <se@FreeBSD.org> | 2022-09-09 16:43:41 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2022-09-09 16:46:47 +0000 |
commit | 0d7e17c121bb1b746676f6dc04d3f2ab4ffb414c (patch) | |
tree | 204fc81ef452977f9aa6375cca7900dee71af3be | |
parent | 2ee1bbcf71764d896e356a58b88fafa3aaf551fd (diff) | |
download | ports-0d7e17c121bb1b746676f6dc04d3f2ab4ffb414c.tar.gz ports-0d7e17c121bb1b746676f6dc04d3f2ab4ffb414c.zip |
Mk/Scripts: protect URL string by enclosing it quotes
The format of the manifest file does not allow commas in values.
Since URLs may include commas, they need to be protected against
interpretation of these commas as field separators.
This update unbreaks the package generation for ports that have
a comma in the URL.
Approved by: portmgr (implcit)
-rw-r--r-- | Mk/Scripts/create-manifest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Scripts/create-manifest.sh b/Mk/Scripts/create-manifest.sh index 252fcead9103..118483cecddf 100644 --- a/Mk/Scripts/create-manifest.sh +++ b/Mk/Scripts/create-manifest.sh @@ -52,7 +52,7 @@ licenselogic: ${dp_LICENSE_COMB:-single} EOT # Then, the optional bits -[ -z "${dp_WWW}" ] || echo "www: ${dp_WWW}" +[ -z "${dp_WWW}" ] || echo "www: \"${dp_WWW}\"" [ -z "${dp_LICENSE}" ] || echo "licenses: [ ${dp_LICENSE} ]" [ -z "${dp_USERS}" ] || echo "users: [ ${dp_USERS} ]" [ -z "${dp_GROUPS}" ] || echo "groups: [ ${dp_GROUPS} ]" |