I’m calling the pkgbuild command on OSX like this:
NAME="Product"
IDENTIFIER="com.${NAME}Package"
pkgbuild --identifier "${IDENTIFIER}" --root "${CONTENTROOT}" "Installer.pkg"
When I echo Identifier I get com.ProductPackage as you would expect.
When I run pkgbuild like that, extract the resulting .pkg file and look into the file PackageInfo it says something like:
<pkg-info overwrite-permissions="true" relocatable="false" identifier="com.${NAME}Package" ...
For some reasons all other parameter than identifier are substituted correctly.
What is going wrong here and how do I fix it?
The only way I can think of that being possible is if you’re using single quotes in your assignment like this:
I notice that you mention echoing “Identifier” (note the difference in case). Is this causing you confusion?