Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tutorial: Fix the markers to build and concatenate (#816)
The current code has a number of issues. 1. realising the code results in: `` markers=$(geocode 'New York') size=640x640 scale=2 zoom=7 ... ^-------------------^ SC2046 (warning): Quote this to prevent word splitting. `` 2. `` $(geocode ${lib.escapeShellArg marker.location})" `` Assumes that geocode has been added to the PATH so replace with `` ${config.scripts.geocode}/bin/geocode `` as per previous examples. 3. `` in "markers=${ lib.concatStringsSep "\\|" attributes}"; in builtins.map paramForMarker config.map.markers; `` The ordering of this actually creates multiple ``[markers =]`` parameters and does not use the concatenation string to join the attributes together (in effect there is only 1 attribute per call) to map, and 1 new ``marker`` created. Signed-off-by: Brian McGillion <[email protected]>
- Loading branch information