Escape all shell arguments uniformly
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
}@args:
|
||||
|
||||
let
|
||||
|
||||
shellEscape = x: "'${lib.replaceChars ["'"] [("'\\'" + "'")] x}'";
|
||||
importedGemset = import gemset;
|
||||
filteredGemset = (lib.filterAttrs (name: attrs:
|
||||
if (builtins.hasAttr "groups" attrs)
|
||||
@@ -58,8 +56,8 @@ let
|
||||
"${confFiles}/Gemfile" \
|
||||
"$out/${ruby.gemPath}" \
|
||||
"${bundler}/${ruby.gemPath}" \
|
||||
${shellEscape (toString envPaths)} \
|
||||
${shellEscape (toString groups)}
|
||||
${lib.escapeShellArg envPaths} \
|
||||
${lib.escapeShellArg groups}
|
||||
'' + lib.optionalString (postBuild != null) postBuild;
|
||||
passthru = rec {
|
||||
inherit ruby bundler meta gems;
|
||||
|
||||
Reference in New Issue
Block a user