mirror of
https://github.com/mmvanheusden/SteamDepotDownloaderGUI.git
synced 2026-02-04 05:31:19 +01:00
fix: windows
This commit is contained in:
@@ -2,7 +2,6 @@ use crate::steam::SteamDownload;
|
||||
use async_process::Command;
|
||||
use serde::Serialize;
|
||||
use std::{env, fs};
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
use crate::get_os;
|
||||
|
||||
/// Represents a terminal that can be used to run commands.
|
||||
@@ -320,6 +319,8 @@ impl Terminal {
|
||||
|
||||
#[cfg(unix)]
|
||||
{
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
|
||||
fs::set_permissions("./script.sh", fs::Permissions::from_mode(0o755)).unwrap(); // Won't run without executable permission
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user