mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
dropEmptyInitThenConcatStringsSep -> concatStringSep: escaped shell args are never empty
This commit is contained in:
parent
3b77f13451
commit
837c3612d4
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,8 @@
|
|||
#include <nlohmann/json.hpp>
|
||||
#include <algorithm>
|
||||
|
||||
#include "strings.hh"
|
||||
|
||||
using namespace nix;
|
||||
|
||||
struct DevelopSettings : Config
|
||||
|
@ -608,7 +610,7 @@ struct CmdDevelop : Common, MixEnvironment
|
|||
std::vector<std::string> args;
|
||||
for (auto s : command)
|
||||
args.push_back(shellEscape(s));
|
||||
script += fmt("exec %s\n", dropEmptyInitThenConcatStringsSep(" ", args));
|
||||
script += fmt("exec %s\n", concatStringsSep(" ", args));
|
||||
}
|
||||
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue