try to fix variable / escaping problem

This commit is contained in:
Christian Ulrich 2023-02-10 20:06:02 +01:00
parent 1eb06bec0e
commit ff8b3cc2b9
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 4 additions and 4 deletions

View File

@ -122,18 +122,18 @@ symlinkJoin rec {
paths = [ unwrapped ];
cfgDir="\\$HOME/.config/openmw";
# crudini --merge will create the file if it doesn't exist
postBuild = ''
mkdir -p $out/bin
dir=\''${XDG_CONFIG_HOME:-\$HOME/.config}/openmw
makeWrapper ${unwrapped}/libexec/tes3mp-browser $out/bin/tes3mp-browser \
--chdir "$out/bin"
makeWrapper ${unwrapped}/libexec/tes3mp-server $out/bin/tes3mp-server \
--run "mkdir -p $dir" \
--run "${crudini}/bin/crudini --merge $dir/${cfgFile.name} < ${cfgFile}" \
--run "mkdir -p ${cfgDir}" \
--run "${crudini}/bin/crudini --merge ${cfgDir}/${cfgFile.name} < ${cfgFile}" \
--chdir "$out/bin"
'';
}