Skip to content

Commit

Permalink
Use "prinf %q" instead of "echo" in Makefile.dist
Browse files Browse the repository at this point in the history
$PATH might contain spaces and other special characters. We need to quote them else the script will fail.
  • Loading branch information
adithyaov committed Jul 16, 2020
1 parent c85cde7 commit 7d259b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IHP/Makefile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ all: build/ihp-lib build/Generated/Types.hs

.envrc: default.nix ## Rebuild nix packages and .envrc
rm -f .envrc
echo "PATH_add $$(nix-shell -j auto --cores 0 --pure --run 'echo $$PATH')" > .envrc
echo "PATH_add $$(nix-shell -j auto --cores 0 --pure --run 'printf %q $$PATH')" > .envrc
direnv allow

build/bin:
Expand Down

0 comments on commit 7d259b0

Please sign in to comment.