We don't need the dash because ExternalCommand already does the piping.

This commit is contained in:
Teo Mrnjavac 2016-04-13 15:56:07 +02:00
parent c41f843aff
commit 3f10c8e2d5
1 changed files with 1 additions and 2 deletions

View File

@ -94,8 +94,7 @@ bool luks::create(Report& report, const QString& deviceNode) const
args.push_back({ QStringLiteral("-s"),
QStringLiteral("512"),
QStringLiteral("luksFormat"),
deviceNode,
QStringLiteral("-") });
deviceNode });
ExternalCommand createCmd(commands, args);
if (!(createCmd.run(-1) && createCmd.exitCode() == 0))