clement's version
MODIFY
WalletWasabi/Helpers/PowerSaving/MacOsInhibitorTask.cs
WalletWasabi/Helpers/PowerSaving/MacOsInhibitorTask.cs
@@ -18,9 +18,9 @@ public class MacOsInhibitorTask : BaseInhibitorTask
{
string innerCommand = $$"""
caffeinate -i &
- caffeinatePid=\$!;
+ caffeinatePid=$!;
trap \"kill -9 \$caffeinatePid\" 0 SIGINT SIGTERM;
- while [ -n "$(grep {{Environment.ProcessId}})" ];
+ while [ -n \"$(grep {{Environment.ProcessId}} )\" ];
do
sleep 1;
done;

clement's version