From c54a49a8c47c2355252ef9b01d34ec4e407a4b96 Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Fri, 12 Jan 2024 19:27:30 -0500 Subject: [PATCH] Do not mention sudo if on Mac --- TwitchDownloaderCLI/Tools/FfmpegHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TwitchDownloaderCLI/Tools/FfmpegHandler.cs b/TwitchDownloaderCLI/Tools/FfmpegHandler.cs index 7a4bd379..d971a2be 100644 --- a/TwitchDownloaderCLI/Tools/FfmpegHandler.cs +++ b/TwitchDownloaderCLI/Tools/FfmpegHandler.cs @@ -50,7 +50,8 @@ private static void DownloadFfmpeg() } catch { - Console.WriteLine("[ERROR] - Unable to update FFmpeg file permissions. Run 'sudo chmod +x ffmpeg' if further FFmpeg errors occur."); + Console.WriteLine("[ERROR] - Unable to update FFmpeg file permissions. Run '{0}' if further FFmpeg errors occur.", + RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? "chmod +x ffmpeg" : "sudo chmod +x ffmpeg"); } }