add Swan.Tiny and CodingStyles
This commit is contained in:
@@ -39,16 +39,15 @@ namespace Unosquare.WiringPi.Resources {
|
||||
return;
|
||||
}
|
||||
|
||||
using(Stream stream = typeof(EmbeddedResources).Assembly.GetManifestResourceStream(resourceName)) {
|
||||
using(FileStream outputStream = File.OpenWrite(targetPath)) {
|
||||
stream?.CopyTo(outputStream);
|
||||
}
|
||||
using Stream stream = typeof(EmbeddedResources).Assembly.GetManifestResourceStream(resourceName);
|
||||
using(FileStream outputStream = File.OpenWrite(targetPath)) {
|
||||
stream?.CopyTo(outputStream);
|
||||
}
|
||||
|
||||
try {
|
||||
_ = SysCall.Chmod(targetPath, (UInt32)executablePermissions);
|
||||
} catch {
|
||||
/* Ignore */
|
||||
}
|
||||
try {
|
||||
_ = SysCall.Chmod(targetPath, (UInt32)executablePermissions);
|
||||
} catch {
|
||||
/* Ignore */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user