Skip to content

Commit

Permalink
escaping hell
Browse files Browse the repository at this point in the history
  • Loading branch information
kiminuo committed Dec 7, 2022
1 parent 8ae8349 commit 1e27ae5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WalletWasabi/Helpers/PowerSaving/MacOsInhibitorTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ private MacOsInhibitorTask(TimeSpan period, string reason, ProcessAsync process)
public static MacOsInhibitorTask Create(TimeSpan basePeriod, string reason)
{
string innerCommand = $$"""
$(caffeinate -i &) ;
caffeinatePid=$!;
trap \"kill -9 $caffeinatePid\" 0 SIGINT SIGTERM;
\$(caffeinate -i &) ;
caffeinatePid=\$!;
trap \"kill -9 \$caffeinatePid\" 0 SIGINT SIGTERM;
wait {{Environment.ProcessId}};
""".ReplaceLineEndings(replacementText: " ");

Expand Down

0 comments on commit 1e27ae5

Please sign in to comment.